[ic] User Sessions

interchange-users@icdevgroup.org interchange-users@icdevgroup.org
Wed Jun 19 20:35:01 2002


On Tue, Jun 11, 2002 at 01:33:30PM -0500, Curt Hauge wrote:
> 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!
> 

Running find over the sessions?  That might not work well on 
busy site or where you don't expire sessions frequently.  You
might instead make some [tag] that just updates a smaller structure,
either a file, a directory or even db.


> 
> 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 //
> //////////////////////////////////////////////////////////////////
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux