You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Neo99 <ne...@ukonline.co.uk> on 2004/11/08 10:10:36 UTC
Obtaining the number of live sessions?
Hello. Hope someone can advise?
Is there a way of obtaining the number of live or current sessions in
Cocoon 2.1.5.1?
And/or a way of obtaining the number of sessions with authentication?
I'm hoping to put live login information on each of my sites html pages,
something like this:
**(***/guest/) *There are *20* users, *16* guests.
I've tried looking through the different types of documentation, but was
unable to find anything.
I'm relatively new to Cocoon.
Thanks in advance,
neo99
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Obtaining the number of live sessions?
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Neo99 wrote:
> Hello. Hope someone can advise?
>
> Is there a way of obtaining the number of live or current sessions in
> Cocoon 2.1.5.1?
> And/or a way of obtaining the number of sessions with authentication?
>
> I'm hoping to put live login information on each of my sites html pages,
> something like this:
> **(***/guest/) *There are *20* users, *16* guests.
>
> I've tried looking through the different types of documentation, but was
> unable to find anything.
>
> I'm relatively new to Cocoon.
This has little to do with cocoon itself. Look in servlet documentation for
HttpSessionListener. You have to register one in your web application that
would listen for sessions being created, destroyed and maintain the count
yourself.
--
Leszek Gawron lgawron@mobilebox.pl
Project Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65