You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Søren Blidorf <so...@nolas.dk> on 2007/07/10 18:19:51 UTC
How many jsessionid's is valid in my webapp
Hi.
Is there a why to tell how many jsessionid's is valid in my webapp.
I want to use it to display the number of online users?
Also is there a way to connect the username from my realm to the
jsessionid so that I can display online users?
BR
Soren, DK
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How many jsessionid's is valid in my webapp
Posted by Laurie Harper <la...@holoweb.net>.
Søren Blidorf wrote:
> Hi.
>
> Is there a why to tell how many jsessionid's is valid in my webapp.
>
> I want to use it to display the number of online users?
Not directly, buy you can implement a session listener to track sessions
being created and destroyed and keep count of how many are currently
active that way.
> Also is there a way to connect the username from my realm to the
> jsessionid so that I can display online users?
That would depend on the specifics of how you're performing
authentication. However, going from a jsessionid to a username is going
to be implementation dependent (if possible at all on a given serlvet
container implementation), so you will probably need to track this
mapping manually within your application.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org