Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Achchan Chaghi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Achchan Chaghi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the session-timeout setting?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!