Hi all,

Please find below the summary of the problem:

HttpSession objects are loaded into a HashMap in the
following manner.

sessionMap.add(httpSession.getId(),httpSession);
and when the User logs out from the system we do this:
httpSession.invalidate();
sessionMap.remove(httpSession.getId());

This used to work in Geronimo 1.0 and Tomcat 5.5.9.

But somehow the same thing does not work in Geronimo
1.1.1 and Tomcat 5.5.15. 
 It says:
java.lang.IllegalStateException: getId: Session
already invalidated

and it works if I change the code to:

sessionMap.remove(httpSession.getId());
httpSession.invalidate();

I was wondering if there is any change in Tomcat that
is causing this issue.

Thanks,
Priya












 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Reply via email to