Tomcat saves the sessions even if I stop application!!!
Joined: Jun 16, 2006
Hi all, I have deployed a web application and now whenever I stop it from tomcat/manager and restart it shows the number of whole previous sessions (right now it is 7 ) I reload the context but no chance. Again stop/start application and it does not help too. Is this a bug? Have you ever encountered it? -Thanks
Joined: Mar 22, 2005
Sessions are persisted, unless you tell Tomcat not to do that. Search for "expireSessionsOnShutdown" in the conf/server.xml file - you'll find an explanation where to set it to "true". Then you will no longer have old sessions around after a restart.