Saturday, May 9, 2015

Change Default JSESSION ID Name for ADF Application

By Default, every ADF Application writes a JSESSIONID Cookie which maintains the session across the ADF application.

The name JSESSIONID is default and can be seen in browser cookies.

Use Case : There might be scenario where this default name required to be changed. One example can be that there is a requirement for running two applications , one ADF Application and other might be existing application. The existing application already use JSESSIONID as cookie name for session management. In that case there will be a conflict between the two applications. In order to solve this we need to give different name of SessionId for ADF Application.

Created a simple ADF application





Created a simple page SessionTest.jspx with output text Session Test Page.

Run the page and check the cookie name in Browser - e.g. Mozilla 



We see the default JSESSIONID.

Now to change this to other name , we need to make an entery in weblogic-application.xml. We need to add <session-descriptor> and value of Session Id.





In our example we added PROJECT-JSESSION.

Now redeploy the application and run the page. Again see the cookie in Mozilla.


So the name of JSESSION ID is changed and we can save name conflicts for this particular type of requirement.

Thanks














10 comments:

  1. Thanks for posting these images which is very useful to learn and understand how to create a simple ADF application. event app android

    ReplyDelete
    Replies
    1. Machine Learning Projects for Final Year machine learning projects for final year

      Deep Learning Projects assist final year students with improving your applied Deep Learning skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include Deep Learning projects for final year into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Deep Learning Projects for Final Year even arrange a more significant compensation.

      Python Training in Chennai Python Training in Chennai Angular Training

      Delete
  2. Hi Rohan, very good info, great effort, thanks for providing in-depth information on Oracle ADF Technology. Please continue sharing.

    ReplyDelete
  3. Useful Information
    one and only affiliate agency in south INDIA, earn money online from affiliate network in india

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Hi Rohan,

    when i add it doesn't allow(error).
    I am using Jdev 12c(12.2.1.0).

    please help me on this.

    Regards,
    Manish

    ReplyDelete
  6. If you need your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (no matter why you broke up) you got to watch this video
    right away...

    (VIDEO) Why your ex will NEVER get back...

    ReplyDelete
  7. last month he share is herbal medicine in some medical hospital and now he is well recognize as one of the best in West Africa, you don’t have to be sad any more or share your tears any more on this virus when the cure have already be find in 2013 if you want to get in touch with him in private contact him on his email dr.chalaherbalhome@mail.com Or you can visit his website on https://
    drchalaherbalhome.godaddysites.com or https://mywa.link/dr.chalaherbalhome

    ReplyDelete