I would look for a server setting before I wrote code to solve the problem.

-Max

----- Original Message ----- 
From: "Joao Batistella" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 12:38 PM
Subject: [Off-topic] How to invalidate a session when a context is
destroyed?


> Hello. Sorry for the off topic question.
>
> I'm using Tomcat and all sessions that I have when the server is up are
not
> destroyed when I shutdown te server. I implemented a
ServletContextListener
> to register when the app is going down and a HttpSessionListener to see
when
> a session is destroyed.
> For me, Tomcat should destroy all sessions when the server goes down. Is
> this correct? Is there a way in the ServletContextListener to destroy all
> active sessions? I couldn't find a way with ServletContext object I have
in
> the method contextDestroyed of my ServletContextListener.
>
> Thanks,
> JP
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to