Jean,

One way to simulate this is to set a non-persistent cookie along with the
session.

If that cookie is not there (ie. the browser has been restarted), then
ignore any session data as if no session data was even present.

=================================================================
Robert Tittsworth                      |
Lockheed Martin Energy Systems, Inc.   |  e-mail: [EMAIL PROTECTED]
Data Systems Research and Development  |   phone: (865) 574-1076
1099 Commerce Park, MS-7619            |     fax: (865) 574-7624
Oak Ridge, TN  37830                   |
=================================================================
"So, welcome to the machine" - Pink Floyd
=================================================================

> -----Original Message-----
> From: Jean Bresse [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 21, 1999 19:58
> To:   [EMAIL PROTECTED]
> Subject:      Expiry of session
>
> Hi:
>
> I know that a session can be destroyed by invoking the invalidate()
> method.  It can also be destroyed once a certain time has passed,
> usually 30 minutes.  The problem is as follow:
>
> 1) User A starts a session, then closes his/her browser.
>
> 2) User B starts the invokes the same browser.
>
> Our environment wants to treat user B as a user with no session (for
> example, the user is prompted to log on, and only THEN a session is
> instantiated).  Is there a way for the server to destroy the session
> upon the user closing the browser?
>
> If this is the right way to approach the problem, suggestions for
> solution are most welcome!  If any of the above is incorrect, your input
> is even more appreciated!
>
> Jean Bresse
>
> __________________________________________________________________________
> _
> 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

Reply via email to