Forum Moderators: DixonJones
Because ASP is my forte, I will use that as an example but I'm sure PHP has something similar.
In ASP, you store increment a value in your Application object every time a user invokes a new Session object. In the Session_OnEnd, you decrement the Application object value you have set up. This will keep your stats as good as you need them.