You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by du...@chennai.tcs.co.in on 2003/08/09 12:45:24 UTC

which method gets called first listener.sessionDestroyed() or session.invalidate()

Hi All,

I have written a Http Session Listener for logging
session termination event.

In my listener I am trying to get user related data by calling getSession() then
getAttribute() method. Here I am always getting an exception saying IllegalStateException
: Session is already
invalidated.

Could you please tell me why session is getting invalidated before calling
listener.sessionDestroyed(..) method.

Thanks,

Kaushik Dutta


Re: which method gets called first listener.sessionDestroyed() or session.invalidate()

Posted by Bill Barker <wb...@wilshire.com>.
If you want to re-post your question on tomcat-user, I'd be more than happy
to answer your question.  However, it is off-topic on this list.

----- Original Message ----- 
From: <du...@chennai.tcs.co.in>
To: "Tomcat Developers List" <to...@jakarta.apache.org>
Sent: Saturday, August 09, 2003 3:45 AM
Subject: which method gets called first listener.sessionDestroyed() or
session.invalidate()


>
> Hi All,
>
> I have written a Http Session Listener for logging
> session termination event.
>
> In my listener I am trying to get user related data by calling
getSession() then
> getAttribute() method. Here I am always getting an exception saying
IllegalStateException
> : Session is already
> invalidated.
>
> Could you please tell me why session is getting invalidated before calling
> listener.sessionDestroyed(..) method.
>
> Thanks,
>
> Kaushik Dutta
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org