Feature #840
closedUser online tracking via unique ip count
Description
The module tracks and counts users online by unique ip.
'''Usage:'''[BR]
useronline.enable = tracking (default=0)
useronline.maxage = till ip/user expires (default=300)
useronline.active = till ip/user is no longer considered active (default=useronline.maxage/3)
useronline.maxips = number of ips to track (default=1024)
'''This module sets the following environment variables with stats:'''[BR]
users_online = number of online users
users_active = number of active users
user_hits = number of hits by current user
users_online_age = current max age setting
users_active_age = current active age setting
users_online_max_ips = max ips setting
users_online_id = id value of current
Note: this tracks users online by setting. So if you have two seperate conditionals with enable = 1, it will track the two seperate areas seperately.
At some point I will add to this module and have it output all the data collected in xml format for easy access remotely.
I made this for Game-Monitor.com, and is actually live right now: http://www.game-monitor.com/ (the stats are shown at the bottom of the page in the footer).
I was doing the same thing via PHP previously, but found it to be a bit of a CPU hog. This module is much faster than the PHP counterpart I made.
Hopefully it proves to be useful for others.
-- Wojciech Hlibowicki <wojtek
Files
Updated by gstrauss over 8 years ago
- Description updated (diff)
- Category changed from core to 3rd party
- Assignee deleted (
jan)
Updated by gstrauss over 7 years ago
- Status changed from New to Wontfix
- Priority changed from Normal to Low
Thanks for the contribution. Linked to Docs_UserWrittenMods and Docs_ModUserOnline
Please note: the module in the attachment needs to be updated to work with more recent versions of lighttpd, and has not been reviewed or tested.
Also available in: Atom