|
Posted by J.O. Aho on 10/14/11 11:32
Bruintje Beer wrote:
> Hi,
>
> Does somebody know how to count all active users in php logged in on your
> website. How do you catch when a user leaves yur site and decrement the
> login count.
You store the "sessions" used in some kind of "database" with the "time", each
time someone access a page, the "time" is updated, check the "database" and
see how many has been updated the last X minutes and there you get how many
are active.
You never really can do any exact measurement.
//Aho
Navigation:
[Reply to this message]
|