aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Force Tomcat to forget all sessions
 
Similar Threads
WARNING Context manager doesn't exist
Retrieving all active sessions at shutdown.
how to know which users are using in the system?
Enumerate active sessions
Tomcat restarted and session still work?