Configuring WebSphere application server to reuse the JSESSIONID information.
 Technote (FAQ)
 
Problem
WebSphere Application Server will use the JSESSIONID information to keep track of the client session.

If you have an application, where application client has to navigate across multiple WebSphere Spplication Server nodes residing in same domain, then JSESSIONID information might get over written at client, because of multiple JSESSIONID cookies received with same name and path.
 
Cause
When persistence is not enabled and if the JSESSIONID that came in incoming request is not found in current session manager, then session manager will generate a new sessionId and create a session object, instead of using the sessionId in the incoming request. This would cause problems with session data, when application client navigates across servers.
 
Solution
To overcome the above problem, you can configure WebSphere Application Server to reuse the sessionId present in the incoming request.

For V6.0:

  1. Open administrative console,
  2. Select Servers > Application Servers > Server_Name > Server Infrastructure > Java and Process Management > Process Definition > Java Virtual Machine > Custom Properties > New
  3. Add a new Custom Property for JVM to reuse the sessionId:
    System Property Name: HttpSessionIdReuse
    System Property Value: true
  4. Save changes and restart the Application Server.

For V5.0 or V5.1:

  1. Open administrative console,
  2. Select Servers > Application Servers > Server_Name > JVM Settings > System Property > New
  3. Add a new Custom Property for JVM to reuse the sessionId:
    System Property Name: HttpSessionIdReuse
    System Property Value: true
  4. Save changes and restart the Application Server.

For V4.0:

  1. Open administrative console,
  2. Select Nodes > Servers > Server_Name > JVM Settings > System Properties > Add
  3. Add a new Custom Property for JVM to reuse the sessionId:
    System Property Name: HttpSessionIdReuse
    System Property Value: true
  4. Save changes and restart the Application Server.
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Sessions and Session Management
Operating system(s): HP-UX
Software version: 4.0
Software edition:
Reference #: 1210881
IBM Group: Software Group
Modified date: Jun 30, 2005