You need to implement the SessionBindingListener interface in one of your
objects and bind this object to the session. When the session is being
destroyed the method valueUnbound() on the bound object will be invoked. The
spec says that at this point you will have access tothe session object being
destroyed, but the bound values won't accessible.

Hope it helps.
Jacek

> -----Original Message-----
> From: Thomas M. Sasala [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 28, 1999 10:31
> To:   [EMAIL PROTECTED]
> Subject:      Session tracking on timeout
>
>         It there anyway to be notified when a session expires?
> Or more importantly, be notified just before the session expires?
> I have a situation where I need to know that a session is about
> to expire, so I can clean up some of the information associated
> with the session (open files & connections).
>
>         -Tom
>
> --
> +-------------------------------------------------------------------+
> +  Thomas M. Sasala, Electrical Engineer       [EMAIL PROTECTED]       +
> +  MRJ Technology Solutions                    http://www.mrj.com   +
> +  10461 White Granite Drive, Suite 102        (W)(703)277-1714     +
> +  Oakton, VA   22124                          (F)(703)277-1702     +
> +-------------------------------------------------------------------+
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to