Can someone confirm that if you have an object that implements the 
HttpSessionBindingListener and you implement valueBound and valueUnbound if the user 
hangs up the browser, ie closes the window without loging off, when the session 
timesout, the session is invalidated and the valueUnbound is called?

This has been bugging me, I havnt found confirmation of how HttpSessionBindingListener 
works in the case of a browser hang-up and find it difficult to test.

Regards Wendy

> -----Original Message-----
> From: Jose Thomas [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 09, 2003 1:04 PM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: RE: responding to session timeouts
> 
> 
> You can implement a javax.servlet.http.HttpSessionListener 
> and register your
> class in web.xml as such:
> 
>     <listener>
>         <listener-class>listeners.SessionListener</listener-class>
>     </listener>
> 
> The Tomcat example should have a sample.
> 
> -----Original Message-----
> From: Andy Kriger [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 6:00 PM
> To: Struts Users Mailing List
> Subject: responding to session timeouts
> 
> 
> 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]>
> 
> 
> --
> 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]>

Reply via email to