tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Larsen" <lar...@qec.com>
Subject Re: Some body Help
Date Mon, 08 Apr 2002 16:40:23 GMT
There is NO way to know when a client kills their 
browser. HTTP is a stateless protocol. The only time
we know that the browser is alive is during a request.
After that, we don't know if the browser gets closed or
if the user just navigates elsewhere.

If you need to close down resources, just set your session
timeout appropriately and use the javax.servlet.http.HttpSessionBindingListener
interface to know when the session gets killed either by an
explicit user logout or a session timeout.

In any case, I would not recommend holding database connections
open for each session. Use a connection pool...

Jeff


----- Original Message ----- 
From: "Uma Munugala" <u.munugala@CellFusion.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Saturday, April 06, 2002 2:44 PM
Subject: Some body Help


> Hi  All
>      Iam using Tomcat 4.0 on NT.
> When a client kills a browser, I dont have any idea whether the client is
> alive or not from a servlet.
> when client is not alive I want release database connections and objects
> instances.
> how do I know which user is alive or which session is alive. Is there any
> software available.
> 
> Please help
> 
> 
> 
> Thanks
> Uma
> 
> 
> 
>  
> 
> 
> --
> 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