> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Subject: Re: Session count in tomcat manager
> 
> When you shut down Tomcat, I believe the default is to 
> write session information out to a saved-sessions file.
> When you start Tomcat back up, it reads this file so that
> any active sessions can be maintained across the restart.

That is correct. By default, the sessions are stored in SESSIONS.ser
files in subdirectories of the work directory.

> Session persistence seems to be enabled by default, which is odd. I
> removed the declaration for <Manager className="...PersistentManager">
> from my <Context> definition, and the sessions were still persisted.

The proper way to disable session persistence is to set the pathname
attribute of <Manager> to an empty string.  You can disable persistence
globally by changing it in conf/context.xml, unless overridden by
individual app's <Context> settings.  See the description of pathname
at:
http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to