You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Murthy Chelankuri <km...@gmail.com> on 2008/02/08 09:22:59 UTC

problem with HttpSessionBindListner

    I am using the HttpSessionBindListner to notify the session events ( 
to know when the user loged in, logout or session timeout). This was 
worked fine in resin. With tomcat6 when we stop the tomcat the listner 
is notifying the unbound event. Once we start the tomcat the previous 
user sessions ( i.e sessions before stoping the tomcat) are still valid. 
This is because of tomcat persisting the sessions info  in a persistent  
storage  ( might be  a file in the work directory).   But at the 
startup  its not notifying any events  for the valid sessions .

Is there any way to know about the valid sessions at the startup of the 
tomcat?.


Thanks,
Murthy


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: problem with HttpSessionBindListner

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Murthy Chelankuri [mailto:kmurthy7@gmail.com] 
> Subject: problem with HttpSessionBindListner
> 
> Is there any way to know about the valid sessions at the 
> startup of the tomcat?.

See section 10 of the servlet spec.  You need to implement a
HttpSessionActivationListener to catch passivations and activations
during Tomcat shutdown and startup.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org