tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Session information
Date Mon, 05 Nov 2001 16:44:45 GMT
There are no method calls in the servlet API that let you find this out.
However, you could create your own mechanism by registering an
HttpSessionListener that is notified every time a session is created or
destroyed.  You can use those event notifications to maintain your own
list of active sessions.

See the "Application Events" chapter in the Servlet 2.3 Specification for
more details <http://java.sun.com/products/servlet/download.html>.

Craig


On Mon, 5 Nov 2001, Mark Muffett wrote:

> Date: Mon, 5 Nov 2001 09:59:22 -0000
> From: Mark Muffett <markm@muffett.net>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> Subject: Session information
>
> How can I find out what sessions Tomcat (v4) thinks are still active? - ie
> ones it would recognise if a response came in with the right cookie or url.
>
> Thanks for any help
>
> Mark
>
>
> --
> 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