• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Servlet 2.2 API  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We met some surprising behavior of methods req.isRequestedSessionIdValid() and req.getRequestedSessionId() which seem not returning the same thing when called on
VAJ + Servlet API2.2
WSAD5.0 (WTE 4.0.4) + servlet API2.2
Why isRequestedSessionIdValid() returns false whith VAJ, and true whith WSAD after sending a request whithout specifying any session ID ?
Meanwhile API's javadoc seem agree with first implementation :
[getRequestedSessionId()] :
"Returns the session ID specified by the client. This may not be the same as the ID of the actual session in use. For example, if the request specified an old (expired) session ID and the server has started a new session, this method gets a new session with a new ID. If the request did not specify a session ID, this method returns null."
Which method may replace properly this behavior difference ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!