kal inuganti wrote:
>
> Dear List Members,
>
> I am back with a basic question. It would be helpful if someone could tell me how my 
>server can
> detect if the client is disconnected (what I mean by disconnected is - if the client 
>closes the
> window)?  If the client is disconnected I want to invalidate a session.

How about using JavaScript in the HTML file displayed in the browser
window?  You might try something like: onUnload=window.location="URI to your
servlet?method=close" and when your servlet receives a parameter called
"method" with a value of "close", it can call session.invalidate().
>
> And one more thing... If the client opens the same page in a new window (^N in the 
>same browser) I
> want  the request to be redirected so that a different session can be created. It 
>would be helpful
> if some pseudo code or directions can be given in this connection.
>
> Thank You,
>
> Kalyan
>
> 
>--------------------------------------------------------------------------------------------------
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ___________________________________________________________________________ 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

--
----------------------------------------------------------------
Marcia Perry                            [EMAIL PROTECTED]
Lawrence Berkeley National Laboratory   WORK#  (510) 486-6786
1 Cyclotron Road                        FAX#   (510) 486-6363
Berkeley, CA 94720                      MS: 50A-3111

___________________________________________________________________________
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