See the JSDK docs for descriptions of
javax.servlet.http.HttpSessionBindingListener and
javax.servlet.http.HttpSessionBindingEvent.
A HttpSessionBindingListener can be used to get notification of a session's
demise (either when your user logs out an d the session is explicitly
invalidated or when session expires and is removed from memory by the
servlet engine).

-ted stockwell

> -----Original Message-----
> From: Manomohan K Kalathil [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, May 23, 1999 11:28 PM
> To:   [EMAIL PROTECTED]
> Subject:      Servlet as a daemon
>
> Hi all,
>     In my application , for each session a seperate temporary directory is
> set up on the web server by the Login servlet . Now , the problem is I
> should be able to remove these directories at the end of the session . One
> way of doing this is to get the user to explicitly log out and run a
> cleanup routine on the server . But this is not possible if the user does
> not log out .
> 1 . Is there a way to do this ?
> 2 . Can I run a servlet as a daemon , such that it finds all sessions that
> are no longer valid and delete the directories created by them
> thanx
>
> Mano.
>
> __________________________________________________________________________
> _
> 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