[imp] Logged in Users
George Theall
theall at tifaware.com
Tue Jul 13 06:35:38 PDT 2004
On Tue, Jul 13, 2004 at 11:23:30AM +1000, Ed Murray wrote:
> Is there any way to get information as to weather there are currently
> any logged in users?
Given that http is a stateless protocol, it's impossible to answer this
with 100% accuracy. Still, one approach is to look at the session data.
For example, if you use sql as your session handler, you could issue a
SQL query to extract the current sessions from the database and count
them. Andy Morgan from Oregon State posted to the mailing list a Perl
code snippet to do this last September.
George
--
theall at tifaware.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.horde.org/archives/imp/attachments/20040713/6c14410d/attachment.bin
More information about the imp
mailing list