[Zope] how to count authenticated and anonymous users currently online ?

Dieter Maurer dieter at handshake.de
Thu Mar 16 14:35:01 EST 2006


Luca Dall'Olio wrote at 2006-3-16 10:01 +0100:
>I would like to know how many anonymous users are online

Do you know what this should mean?

The server has no a priori notion which users are "online".

You may artificially define the term "session"
and then consider the number of session as representing
the number of online users.
If you do this and you use Zope sessions to implement your
notion of "session", then you can look at the "session_data_manager"
to find out how many sessions are available.

>and also if 
>some authenticated users are.

Same problem for authenticated users.
You see them coming (because they log in) but you do not see
them going. Thus, you do not know when they become offline...

-- 
Dieter


More information about the Zope mailing list