aspose file tools
The moose likes JSF and the fly likes Tomcat saves the sessions even if I stop application!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Tomcat saves the sessions even if I stop application!!!" Watch "Tomcat saves the sessions even if I stop application!!!" New topic
Author

Tomcat saves the sessions even if I stop application!!!

Achchan Chaghi
Greenhorn

Joined: Jun 16, 2006
Posts: 9
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
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.


Android appsImageJ pluginsJava web charts
Achchan Chaghi
Greenhorn

Joined: Jun 16, 2006
Posts: 9
Thanks Ulf,
I read the server.xml comments but It seems that it is for clustering tomcat.I have a really simple app and want to keep it simple. Any suggestion?
-Your help is really appreciated.
Freya Impens
Greenhorn

Joined: Mar 23, 2004
Posts: 11
What is the session-timeout setting?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat saves the sessions even if I stop application!!!
 
Similar Threads
Help ! SysDeo strange behavior (V3 and V3.1)
Tomcat sessions do not expire
Users in a server
Upload jsp without restart server?
Simplest way to prevent resubmitting the same page?