tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Larsen" <>
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...


----- Original Message ----- 
From: "Uma Munugala" <>
To: <>
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:   <>
> For additional commands: <>
> Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message