This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Force Tomcat to forget all sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Force Tomcat to forget all sessions" Watch "Force Tomcat to forget all sessions" New topic
Author

Force Tomcat to forget all sessions

Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
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

Joined: Aug 08, 2003
Posts: 326
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

Joined: Jan 15, 2004
Posts: 149
Thank you
that did the trick.
Off for the bar now...
Bye
 
Don't get me started about those stupid light bulbs.
 
subject: Force Tomcat to forget all sessions
 
Similar Threads
WARNING Context manager doesn't exist
Tomcat restarted and session still work?
Retrieving all active sessions at shutdown.
Enumerate active sessions
how to know which users are using in the system?