Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

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

dutta kaushik

2003-08-10


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 Already
Invalidated.

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

Thanks,

Kaushik Dutta

This mail was scanned by Interscan Virus Wall of Mailserver2 at SNR, TCS, Chennai

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.