tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Roberts <techi...@ait-web.com>
Subject Re: Session already invalidated
Date Tue, 09 Apr 2002 16:44:02 GMT
This seems reasonable to me.  In fact someone had suggested this in the 
archives some months ago to someone elses query about this same issue.

But when I do this.  The exception is still passed to my error page.

Do you know of anyway to prevent that?

Thanks for the help.

Rick



Jeff Larsen wrote:

> Part of the problem may be that you're grabbing a session object
> that you have stored in your own data structure. Tomcat doesn't
> know anything about your monitor HashMap and is not going to update
> it when it invalidates a timed-out session.  
> 
> Why don't you do this:
> 
>   try {
>     oldSession.invalidate();
>   } catch (IllegalStateException ise) {
>     // do nothing, if it's already invalidated, we're happy
>   }
> 
> Jeff
> 
> 



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message