geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul McMahan" <paulmcma...@gmail.com>
Subject Re: HttpSession, Geronimo 1.0 with Tomcat 5.5.9 and geronimo 1.1.1 with Tomcat 5.5.15
Date Mon, 05 Feb 2007 18:09:54 GMT
getId does not check to see if the session is valid Tomcat 5.5.9.  In
Tomcat 5.5.15 the check is made (see rev 303826).

Best wishes,
Paul


On 2/5/07, sreepriya ramakrishnan <sreepriya_ramakrishnan@yahoo.com> wrote:
> 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
>

Mime
View raw message