PQ65733: SREQUESTEDSESSIONIDVALID METHOD RETURNS TRUE AFTER SESSION IS INVALIDATED | |||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description After invalidating a session then the isRequestedSessionIdValid method return true. Since the session has been invalidated the isRequestedSessionIdValid should return false. To illustrate this consider: ... // get existing session from HttpServletRequest object named // request HttpSession session = request.getSession(false); ... // invalidate the session session.invalidate(); ... // following should return false but returns true. request.isRequestedSessionIdValid()Local fix When accessing the session catch the error when accessing the session. If recieve IllegalStateException then coder knows that session is not valid.Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server - Session * * Manager Users * **************************************************************** * PROBLEM DESCRIPTION: The isRequestedSessionIdValid() * * method call is returning * * a value of true even after the * * session has been invalidated * * in a servlet's service method. * **************************************************************** * RECOMMENDATION: * **************************************************************** If a session is invalidated in the service method the isRequestedSessionIdValid() method on the request object should return a false value. This was not happening and the method was returning a value of true.Problem conclusion This fix will cause the isRequestedSessionIdValid() method to return a value of flase after the session has been invalidated in the service method().Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
SRLS
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ65733
IBM Group: Software Group
Modified date: Sep 25, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.