Re: How know how many sessions are active?
| From: | Marek Kilimajer | Date: | Mon, 20 Jan 2003 16:08:28 +0000 |
| Subject: | Re: How know how many sessions are active? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132257@lists.php.net to get a copy of this message | ||
By setting cookie_lifetime to 0 (this is default), but the user has to close all browser windows
Jeremías Grunge wrote:
Thanks to everybody I decided to use the way of store the sessions on database and stamped them Another question Do you know a way to close a session when client closes the explorer? Perhaps with a client script? "Marek Kilimajer" <kilimajer@webglobe.sk> escribió en el mensaje news:3E2BE7DD.6090505@webglobe.sk...orYou can also use your custom save handler and store sessions in sql, and count it there Justin French wrote:(eg)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 savemins).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 3This 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
the id of them? Thanks