[ic] Displaying Users Online

Kevin Walsh interchange-users@interchange.redhat.com
Thu Jan 17 09:07:01 2002


> I need to show the # of user's currently logged in.  Can someone help?
>
> Output example of what I need...
>
> User's Currently Online: [code here]
>
If you log into to your shop's Admin system, there is a link that
goes to a page listing sessions that have been active in the last
60 minutes.

Look at the [dump-session] usertag (in lib/UI/usertag) to find out
how it does that, or just use that tag yourself.  That tag only works
for file-based sessions, which most people use.

The session dumper will only list sessions, not tell you who is
logged in.  You will have to read and examine each session to extract
the $session->{'username'} if you need this information.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/