Re: How know how many sessions are active?
| From: | Justin French | Date: | Sun, 19 Jan 2003 11:55:44 +0000 |
| Subject: | Re: How know how many sessions are active? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132176@lists.php.net to get a copy of this message | ||
If you're on a dedicated server (no other sites on the server), you could
just count the session files in /tmp.
Otherwise, the general consensus seems to be that you need to decide how
long a user is "active" for (say a minute, or 3, or an hour?), and save (eg)
the SID and timestamp in a file or MySQL table.
In theory, you then count the number of sessions that were created or
reactivated (restamped) within your definition of "active" time (eg 3 mins)..
This has been discussed waaay too many time on the list... do a search on
the archives for 'active users', perhaps also try a search with the word
"ASP" too :)
Justin
on 19/01/03 10:27 PM, Jeremías Grunge (angelcmateos@hotmail.com) wrote:
> Sorry I'm novice.
>
> There is a way to know how many sessions are active and to get variables or
> the id of them?
>
> Thanks
>
>