[Seaside] How to get the number of user connected
ramon.leon at allresnet.com
Wed Dec 13 16:25:40 UTC 2006
> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf
> Of William Harford
> Sent: Wednesday, December 13, 2006 9:16 AM
> To: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: Re: [Seaside] How to get the number of user connected
> On Dec 13, 2006, at 11:01 AM, Ramon Leon wrote:
> > If you already know what your component is, just access it directly
> > MyComponent allInstances, or even, MyUser allInstances, and
> count them
> > directly, no need to go through the session.
> MyComponent can still be expired or part of a session that
> has expired but might still be an instance because expired
> sessions have not been cleared.
This is true... If you aren't running a session reaper to keep sessions
down, but if you want to run a production app, and not stall on session
expirations randomly, you need to run a separate service to continually
flush out expired sessions.
Anyway, you're correct, and I Boris had the answer... Custom session class,
I didn't notice he was just trying to find users on the session the hard
More information about the Seaside