You could use a cookie and set the expire seconds to "-1". This will
automagically invalidate the session when the browser shuts down. (I am
assuming you're using sessions..)
"Kathiresan, Vallikun" wrote:
> I would like to log off the user and invalidate the session as soon as the
> user shuts down the browser. In other words, I would like to capture the
> window.close in a browser and want to log the user off instead of the user
> having to click on a button that would log them off. Expecting your valuable
> suggestions
>
> Vallikun
>
> ___________________________________________________________________________
> 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