[ic] User Sessions

Curt Hauge interchange-users@icdevgroup.org
Tue Jun 11 14:30:00 2002


Jim Webster said:

> Is it possible to show "current users logged in" or at
> least "users logged
> within the last hour"?  If so, any help is appreciated... thx.

I have made a html page for clients like this, thanks to Dave Barr who
posted the code. Kevin Walsh put another spin on it, search for his
name in the archives:

<html>
<head>
</head>
<body>

[calc]
   my $sessions = q{[dump-session find=1]};
   my @array = split(/\s+/, $sessions);
   my $num = @array;
   my $out = $num . " people are currently surfing my site" ;
   return $out;
[/calc]

</body>
</html>

Good luck!


Curt Hauge

//////////////////////////////////////////////////////////////////
// Web Design - Interchange Hosting - Small Business Consulting //
// 1525 Meadowwood Drive                    www.mnwebdesign.com //
// Brooklyn Park, MN 55444             www.iwantaconsultant.com //
// Phone 612-598-5530                      info@mnwebdesign.com //
//////////////////////////////////////////////////////////////////