tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Carlsson" <rolan...@swetravel.se>
Subject Re: Sessions
Date Fri, 09 Nov 2001 08:53:06 GMT
When reading about the javax.servlet.http.HttpSessionBindingListener and HttpSessionBindingEvent
I understand that I can be notified when a user adds or remove a object to it's session. But
how do I see when the session gets created or removed?? 

Thanks in advance
Roland Carlsson



----- Original Message ----- 
From: "Marc Ponschab" <ponschab@isys-software.de>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, November 09, 2001 9:32 AM
Subject: Re: Sessions


> Hi,
> 
> the interface javax.servlet.http.HttpSessionBindingListener is your 
> friend. Implement it with a counter (increase it in valueBound and 
> decrease it in valueUnbound) and put an instance in every session you use.
> 
> Marc
> 
> Roland Carlsson wrote:
> 
> > Hi!
> > 
> > I wanna se how many sessions I have on a host. But since the servlet api doesn't
allow me to do this kind of groupfunctions I wonder if there is a "hack" I can do to get this
information. Or is there another way of doing this that perhaps is a little more transportable
then hackning a Tomcat-class?
> > 
> > Thanks in advance
> > Roland Carlsson
> 
> 
> 
> --
> 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