Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Force Tomcat to forget all sessions

 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i've been fiddling around with the max session length in the web.xml of my app.
Right when the duration was REAL long ( i won't tell you howwwww long ) some misguided souls opened about 15 session.
I reduced the duration, restarted tomcat but these session keep sticking to my so(u)l(e).
They should have expired hours ago, on every restart they appear again.
Is there a way to FORCE the termination of ALL sessions and - where does tomcat store this stuff between reloads?
Thank you,
Jeffrey [[sitting and waiting]...]
 
Ray Stojonic
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either use the manager app to stop that context, or just shut down the server. Then navigate to %tomcat home%/work/.../contextName and delete the SESSIONS.ser file.
(my ... is Standalone/localhost)
 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
that did the trick.
Off for the bar now...
Bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic