tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Comte" <laur...@oodrive.fr>
Subject RE: Http Sessions and Browsers
Date Wed, 27 Mar 2002 16:08:07 GMT
All the informations bind to the session are destroyed when the session goes
invalid.

The session goes invalid when :
1/ You explicitly invalid it (session.invalidate())
2/ or the session expires on the server, after a certain amount of time of
inactivity (15 mns for example) from
the client attached to this session (time out).
Before the time out, all your objects are alive, and they will be killed at
the time out.
You can be notified of the session time-out by implementing a
HttpSessionBindingListener interface.
 (to do some cleaning or logging for example).

Hint : never try to detect when the browser or a window is closed, you will
never succeed it in all cases !

L.C.


-----Message d'origine-----
De : Paul Kofon [mailto:pkofon@hotmail.com]
Envoyé : mercredi 27 mars 2002 15:57
À : tomcat-user@jakarta.apache.org
Objet : Http Sessions and Browsers


Hi all,
I know that a session can be "killed" by calling session.invalidate() in a
jsp page. However, I'm not sure what happens when the browser is closed
before the session is "killed". Does the server (Tomcat, this time) still
hold references to objects that had been created or are they discarded? I
need to know for sure. Thanks.

Paul


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message