Follow up question... I setup an object that implements HttpSessionListener and prints out a message when sessionDestroyed is called. However, if I also have an object that implements HttpSessionBindingListener and prints out a message when valueUnbound is called, I only get a message during valueUnbound. I never see the sessionDestroyed message called.
Any idea why? thx andy -----Original Message----- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 17:54 To: [EMAIL PROTECTED] Subject: [OT] Re: responding to session timeouts Look at HttpSessionListener here: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/ Prefix off topic posts with [OT] in the future. Dave >From: "Andy Kriger" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: responding to session timeouts >Date: Wed, 8 Jan 2003 18:00:22 -0500 > >This isn't a Struts-specific question, but i'm figuring someone here might >know the answer... > >Is there a way to know when a session times-out and respond to that? (like >an event being fired or and having a servlet acting as a listener) There's >some cleanup that I need to do in the case that a user does not complete >their transaction (e.g. they shut their browser down leaving the system >state incomplete). In this case, I'd like to have a background object >(servlet, thread, whatever) do some cleaning up when the session times-out. > >Any ideas? > >thx >andy > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>