You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Ward <cw...@go-integral.com> on 2003/01/24 14:23:16 UTC

RE: how do I detect alive sessions at this moment?

Not sure if Tomcat will take care of this automaticly for you. What I do is have the object I set in the session add it's self to a list in the sever context, and remove it's self when the session expires. Then you will have a list of all sessions in one place.

Chris

-----Original Message-----
From: Henry [mailto:henry@cafelab.com]
Sent: Friday, January 24, 2003 6:24 AM
To: Tomcat Users List
Subject: how do I detect alive sessions at this moment?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: how do I detect alive sessions at this moment?

Posted by Felipe Schnack <fe...@ritterdosreis.br>.
  You can list all active sessions if you application have the
"privileged" attribute set to true in server.xml and if you implement a
specific interface... I just can't remember which one right now, but you
certainly see how this can be done downloading the admin app sources...
  Just keep in mind giving privileges to your application a programmer
may do anything he wants with your tomcat server :-)

On Fri, 2003-01-24 at 11:23, Chris Ward wrote:
> Not sure if Tomcat will take care of this automaticly for you. What I do is have the object I set in the session add it's self to a list in the sever context, and remove it's self when the session expires. Then you will have a list of all sessions in one place.
> 
> Chris
> 
> -----Original Message-----
> From: Henry [mailto:henry@cafelab.com]
> Sent: Friday, January 24, 2003 6:24 AM
> To: Tomcat Users List
> Subject: how do I detect alive sessions at this moment?
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
-- 

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>