tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Roberts <>
Subject Re: Session already invalidated
Date Tue, 09 Apr 2002 16:32:59 GMT
I'm not sure what you are trying to tell me.

If you are wondering if the monitor bean works, the answer is yes it does.

If I do what you suggest:

// Got user.  Do they already have a session?
if ( !monitor.containsKey(user) ){
   // There's _NOT_ an old session for this user - invalidate it
   HttpSession oldSession = (HttpSession)monitor.get(user);

Then, I get:
  at checkLogin_1._jspService(

at "oldSession.invalidate()"

It seems that when tomcat tries to invalidate() a session.  I get an 
error that says the session is already invalidated.  But, I know the 
session is not already invalidated.

Is this a tomcat bug?



Dominic Parry wrote:

>>    if( monitor.containsKey(user)){
> Check what if this returns true of false for "has a session". Try 
>     if !(monitor.containsKey(user)){
> see if the case where the user has no session now works.
> Hope this helps.

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message