Session count in tomcat manager
- From: "Caldarale, Charles R" <Chuck.Caldarale (at) unisys.com>
- Date: Thu, 12 Oct 2006 11:30:56 -0500
> From: Christopher Schultz [mailto:chris (at) christopherschultz.net]
> 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 (at) tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
For additional commands, e-mail: users-help (at) tomcat.apache.org