PK46781: SESSION.ISNEW() RETURNING INCORRECT VALUE | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description A call to session.isNew() returning wrong value in the below scenario: 1. An Enterprise application containing two web applications(WebApp1 and WebApp2), and JSESSIONID cookie is named differently at web application level for each of them. 2. Access a resource in WebApp1 that creates a new HTTPSession 3. Access a resource in WebApp2 that creates a new HTTPSession in WebApp2 and includes a resource in WebApp1. The included resource in WebApp1 makes a call to getSession(false). On the returned session object, a call to isNew() is returning true, instead of the right value false.Local fix Problem summary **************************************************************** * USERS AFFECTED: Users of http sessions in IBM WebSphere * * Application Server Version 5.1 * **************************************************************** * PROBLEM DESCRIPTION: When an http a request is dispatched * * across two web applications, the * * isNew() method will return true * * incorrectly in some cases. * **************************************************************** * RECOMMENDATION: * **************************************************************** This problem occurs when: 1. Two web modules have separate cookie names. 2. The sessions have already been created for each of the web modules in a prior request. 3. When the request is dispatched (forward or include) from one webapp to another, in the dispatched request the isNew() call will return true erroneously.Problem conclusion This APAR introduces a fix to return false when isNew() is called in the above scenario. This APAR will be included in fixpack 5.1.1.16 Please refer to the recommended updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980 This problem does not exist in websphere application server's version 6.0 and above releases.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
Publications Referenced
|
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 10W
Software edition:
Reference #: PK46781
IBM Group: Software Group
Modified date: Jul 23, 2007
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.