Is there an easier way to count the total number of sessions running on a PHP webserver? something like session_count();
I've seen some php site where it tells you how many people are currently online, which I guess is being done by keeping a count of total sessions running on the server
$num_sessions = count(glob(session_save_path() . '/sess_*')); echo "There are about {$num_sessions} active sessions.";
It will be fairly active so long as your garbage collection is triggered fairly often.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php