Wednesday, April 2, 2014

Adding path in JSESSIONID cookie through WAS Admin Console- resolving sharing same jsessionid cookie with different application

I was facing a problem of sharing same jsessionid cookie with different application.
As we know managing session and creating session cookie is a web container responsibilty.
I just looked into web container settings from WAS admin console and I got an option of adding context root of application as path to the jsessionid cookie which differentiate it from other applications session cookie.

Following are the step I followed hope it will be helpful.

1. Go to WAS Admin Console> WebSphere Application Server > Web Container Settings


 2. Go to Session Management Section of Web Container



3. Click on Enable Cookie.

4. On Cookie Path Section just select Use the Context Path Option.


That's it and now for every deployed application there will be a different cookie created.

If found helpful please share and provide your valuable comment.







No comments:

Post a Comment