Hi --

With IE, you can try calling some Javascript code to on unLoad event of the
main window. However, it simply fails with NS navigator. It depends if the
browsers support calling methods in the current window before quitting.

If it permits, you can explicitly send a request to the servlet to do the
cleanup job - or whatever.

_s_


>From: Emmanuel JEGOU <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: how to know if the browser is closed ?
>Date: Thu, 2 Sep 1999 14:31:12 +0200
>MIME-Version: 1.0
>From [EMAIL PROTECTED] Thu Sep 02 05:33:41 1999
>Received: from [204.160.241.28] by hotmail.com (2.1) with ESMTP id
>MHotMailB997B996016CD82197B9CCA0F11CED9E0; Thu Sep 02 05:33:41 1999
>Received: from mail (mail.java.sun.com [204.160.241.28])by
>mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA09603;Thu, 2 Sep 1999
>05:33:39 -0700 (PDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with          spool id 582650 for [EMAIL PROTECTED]; Thu, 2 Sep
>1999          05:31:53 -0700
>Received: from mail.naonet.fr (mail.naonet.fr [212.208.150.5]) by
>mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA09333 for
><[EMAIL PROTECTED]>; Thu, 2 Sep 1999 05:31:51 -0700 (PDT)
>Received: from naonet.fr (spoke.naonet.fr [212.208.150.251]) by
>mail.naonet.fr          (8.9.3/8.9.3) with ESMTP id QAA30042 for
><[EMAIL PROTECTED]>; Thu, 2 Sep 1999 16:26:15 +0200
>X-Mailer: Mozilla 4.61 [en] (WinNT; I)
>X-Accept-Language: en
>Message-ID:  <[EMAIL PROTECTED]>
>Sender: "A mailing list for discussion about Sun Microsystem's Java
>      Servlet API Technology." <[EMAIL PROTECTED]>
>Organization: Naonet
>
>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

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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

Reply via email to