The encodeUrl and encodeRedirectUrl methods in HTTPServletRequest do not work as expected
 Technote (troubleshooting)
 
Problem(Abstract)
Describes a problem with the encodeUrl and encodeRedirectUrl methods when NOT using JSESSIONID as a cookie name.
 
Cause
SessionManager will not look for a session cookie name when building a URL for the encodeUrl method call. When using URL rewriting and cookies with a modified cookie name, the session information encoded in the URL is not consistent with the session cookie.
 
Resolving the problem
To resolve this problem, follow these steps to configure WebSphere® Application Server to specify a rewrite identifier for the session manager:
  1. Open the administrative console,
  2. Select Servers > Application Servers > Server_Name > Web Container Settings > WebContainer > Custom Properties > New.
  3. Add a new Custom Property for the JVM to reuse the sessionId:
    System Property Name: SessionRewriteIdentifier
    System Property Value: NewValue
  4. Save these changes and restart the Application Server.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Sessions and Session Management
Operating system(s): z/OS
Software version: 6.0
Software edition:
Reference #: 1235297
IBM Group: Software Group
Modified date: Apr 14, 2006