Author | Message | Time |
---|---|---|
warz | What are the various methods for creating a PHP script that displays which current logged in users are viewing your page? Are sessions the only method? I want to try to avoid sessions. | July 25, 2006, 3:15 AM |
Spht | [quote author=warz link=topic=15446.msg156066#msg156066 date=1153797302] What are the various methods for creating a PHP script that displays which current logged in users are viewing your page? Are sessions the only method? I want to try to avoid sessions. [/quote] I keep a database of IPs of all visitors for the past 5 days, along with the date/time they first visited and their last action (all pages are generated from a single file so last action is updated whenever they view a page on the web site). From this I can track "unique" visits (by IP, five day accuracy), compute an average daily visit count (based on the past 4 days), and active viewers (if last action was <= 15 minutes ago). The SphtBotv3 and ClanGnome web site use this system, which I wrote in ASP. | July 25, 2006, 4:07 AM |