You don't. However if you are using sessions, they are automatically
invalidated after a set period of time of inaction on the part of the
client/browser, dependent on your servlet engine (30 minutes is normal).
Any HttpSessionBindingListener interface is notified of this event via the
valueUnbound method. Check the servlet API documentation for details.
You could theoretically use Javascript of an applet on each page that lets you
know when the window is closed, but it's not really necessary and not a
reliable method.
- simon
Xizhen Wang wrote:
> Hi! all,
>
> In servlet, how to know that the browser's window is closed?
>
> thanks!
>
> ___________________________________________________________________________
___________________________________________________________________________
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