CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Posting CURRENT viewers to page...stats?



Apr 14, 2001, 9:24 PM

Post #1 of 2 (231 views)
Posting CURRENT viewers to page...stats? Can't Post

anyone have an idea how this might be accomplished to an EXISTING site.

when people log into the site, I want to keep count of current viewers. so if 5 people were viewing the site at the same time, somewhere on my page it will say "5 people currently logged on".....

How would I accomlish this...cookies, my mind is not working properly...any help here?

User / Moderator

Apr 16, 2001, 11:44 AM

Post #2 of 2 (223 views)
Re: Posting CURRENT viewers to page...stats? [In reply to] Can't Post

If you click the "Who's Online" link at the top of this page it will show who has done something in the last 10 minutes. So following that model, you could look into the access log for all links less than 10 minutes old, and then grab the unique users in the first field of the line.

Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives