aspose file tools*
The moose likes Websphere and the fly likes Is it possible to create  JSESSIOINID per context (web application) in websphere(Single Domain)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Is it possible to create  JSESSIOINID per context (web application) in websphere(Single Domain)?" Watch "Is it possible to create  JSESSIOINID per context (web application) in websphere(Single Domain)?" New topic
Author

Is it possible to create JSESSIOINID per context (web application) in websphere(Single Domain)?

selva raja
Ranch Hand

Joined: Nov 24, 2009
Posts: 69
Dear team,

I have a websphere server configured in cluster environment, and I deploy more than one web applications in single domain(_www.xxxx.com). I am not able to access all applications in same browser tabs(Like IE...).

This is due to singe session id shared for same browser. To overcome this issue, I have created JSESSIONID programmatically and worked in JBOSS server.

Is it possible to create different JSESSIONID per context (web application) in Websphere server?

Thanks,
selva
Brian Hennessy
Ranch Hand

Joined: Oct 24, 2005
Posts: 57
Yes in the admin console (I'm on WAS 6.0)

Enterprise Applications => app Name => Session Management => Cookies

The cookie path will be set to /

change this to /set_value_here , some people use the apps context root so change it to /your_context_root
Make sure though that if you uninstall and reinstall your app you set this value again. Might be worth doing this through a jython deployment script.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is it possible to create JSESSIOINID per context (web application) in websphere(Single Domain)?
 
Similar Threads
HttpSession and cookies
inconistent session time-out,cookie name change is not a option
ISSUES WITH COOKIE(JSESSIONID)
****ServletContext and WebApplication confusion****
000-341 sample test questions