Project

General

Profile

Actions

Feature #840

closed

User online tracking via unique ip count

Added by Anonymous over 18 years ago. Updated almost 8 years ago.

Status:
Wontfix
Priority:
Low
Category:
3rd party
Target version:
-
ASK QUESTIONS IN Forums:

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

mod_useronline.c (6.28 KB) mod_useronline.c Module: online user tracking -- Wojciech Hlibowicki <wojtek Anonymous, 2006-09-07 19:46
Actions #1

Updated by moo over 18 years ago

test

Actions #2

Updated by moo over 18 years ago

test

Actions #3

Updated by moo over 18 years ago

again

Actions #4

Updated by gstrauss over 8 years ago

  • Description updated (diff)
  • Category changed from core to 3rd party
  • Assignee deleted (jan)
Actions #5

Updated by gstrauss almost 8 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.

Actions

Also available in: Atom