Re: Logged in users
| From: | Justin French | Date: | Thu, 24 Oct 2002 23:37:53 +0000 |
| Subject: | Re: Logged in users | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121370@lists.php.net to get a copy of this message | ||
There are classes on phpclasses.org that attempt to do this. It's been
discussed MANY times before.
There are a couple of methods:
1. sessions -- count your active sessions
2. counters -- each time a page is acessed, log it with a time stamp...
after 30 seconds (or whatever you decide is enuff time), delete it... the
total count of logged requests is a rough guide to how many people are
online...
3. a combination of the two... you can use the session id to ensure that if
one user visits 8 pages in 30 seconds, it doesn't appear that he/she is 8
users instead of one.
Seriously, check the archives, dig around phpclasses... i know it's been
done to death :)
Justin
on 25/10/02 5:01 AM, Plasje (info@duikplas.nl) wrote:
> Hi there,
>
> After a long search I still have the problem getting the amount of users
> that is logged in on a specific moment.
>
> Can anybody help me out on which function or variable to use?
>
> Thanks in advance
>
> Robert
>
>