Hello!
I'm using Tomcat 4 and all sessions that I have when the server is up are
not
destroyed when I shutdown te server. I've implemented a
ServletContextListener
to register when the app is going down and a HttpSessionListener to see when
a session is destroyed. When the server goes down the
Sessions aren't destroyed until the session times out. If you shut the server
down, existing sessions will be written to file. If you bring the server back
up before the timeout of those sessions, they will still exist upon server
restart. If you think about it, this is usually desired
Tomcat Users List [EMAIL PROTECTED] writes:
You can
always delete the work directory for the app if you actually do desire to
blow
away sessions as well.
I have scripts to restart Tomcat which do precisly that because...
destroyed and, when it comes up again, the sessions are still there. If
I
[mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:27 AM
To: Tomcat Users List
Subject: Re: Session not destroyed after server shutdown
Tomcat Users List [EMAIL PROTECTED] writes:
You can
always delete the work directory for the app if you actually do desire
to
blow
away sessions as well
Tomcat Users List [EMAIL PROTECTED] writes:
Hi,
Have your listener also implement HttpSessionActivationListener.
Correlate activation with creation and passivation with destruction
(optionally).
Cool. I'll file that tidbit away for when I have the time.
I don't have time to give detailed
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:20 AM
To: Tomcat Users List
Subject: Re: Session not destroyed after server shutdown
Sessions aren't destroyed until the session times out. If you
shut the server
down, existing sessions
://barracudamvc.org
--
Coffee? I could quit anytime, just not today
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:20 AM
To: Tomcat Users List
Subject: Re: Session not destroyed after server shutdown