Re: How know how many sessions are active?

From: Date: Sun, 19 Jan 2003 18:48:40 +0000
Subject: Re: How know how many sessions are active?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-132186@lists.php.net to get a copy of this message
To help even more, if you're on a dedicated, this shell command will provide you the amount of sessions active: "ls -l /tmp/sess* | wc -l" HTH "Justin French" <justin@indent.com.au> wrote in message news:BA50DD70.1D23C%justin@indent.com.au... 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 > >

« previous php.general (#132186) next »