[Seaside] How to get the number of user connected
William Harford
seaside at harford.org
Tue Dec 12 16:30:57 UTC 2006
Florian,
(WASession allSubInstances select:[ :ea | ea isActive]) size
Will get you the total number of active sessions for all session. I
think something like ...
(WASession allSubInstances select:
[ :ea | ea isActive & (ea application name = "whatever" ) ]) size
Will get you what you want.
I have not tried the above but it should be close enough to get you
started.
Will
On Dec 12, 2006, at 10:31 AM, Florian Minjat wrote:
> Hi,
> I'd like to display on my seaside application the number of users
> currently connected to a particular application. I know I have to
> get some info from the sessions. But with a quick look into the
> code I could'nt manage to see how I could do that.
> Any hint ?
>
> Florian
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the Seaside
mailing list