I'm not sure if this is the best way, but I added a HttpSessionListener 
to find out when
sessions were created / destroyed and just maintained a list.

It is probably more portable than hacking your way into Catalina internals.

See the servlet spec for details on lifecycle listeners.

Terrence Szeto wrote:

>
> Is it possible to list all the users who are currently logged in?
>
> I'm using FORM authentication with a JDBC Realm.
>
> Basically what I want is for users to be able to see who's currently 
> online (other users).
>
> Is there a simple way of approaching this?
> and if I were to have to write something for myself, to say, keep 
> track of all the users who logged in, is there an event which is fired 
> when a user's session is invalidated so I remove him from a master 
> "logged-in" user list?
>
>
> Thanks for your help everyone..
>
>
> Terrence Szeto
> Cybermation Web Architect
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
>
>
> -- 
> To unsubscribe, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to