> From: Violeta Georgieva [mailto:miles...@gmail.com] 
> Subject: Re: Fwd: SessionListener.sessionDestroyed is not called when 
> stopping web application

> I can confirm that in all three scenarios sessionDestroyed method 
> is not invoked and session.expire(false) is invoked.

This may be because the sessions are not actually destroyed.  Tomcat normally 
persists sessions in the work directory under the name 
Catalina/[host]/[appName]/SESSIONS.ser when it stops so that the sessions can 
be recovered when it restarts.  Look here for more info:

http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html#Restart%20Persistence

If you want to disable session persistence, you can configure a <Manager> for 
the <Context> of interest, and set its pathname attribute to an empty string.

http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html#Standard_Implementation

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to