U can check using some java script like document.close().
I dont know how much it will helpful.
Or U can try in destroy methos.
Daison
>Hi,
>
>I use sessions in my servlet and I would like to if it is
possible to
>know when the user close the browser window in order to
initialize
>something in my servlet.
>So when the user will launch its browser later, the session
will be new
>!
>
>thanks.
>
>Emmanuel.
>
>--
>---------------------------------
> Emmanuel JEGOU
> mailto:[EMAIL PROTECTED]
> ICQ# 43987579
>---------------------------------
> Naonet => Internet - Intranet
> http://www.naonet.fr
>---------------------------------
>
>___________________________________________________________________________
>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