Re: Checking how many users are logged in?

From: Date: Sun, 03 Mar 2002 21:01:42 +0000
Subject: Re: Checking how many users are logged in?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-86998@lists.php.net to get a copy of this message
This jaust what I wanted to say... but while reading this I got to question: Is it possible to count active sessions, if the one uses php's sessions without writing any handler functions, just what php4 provides by default? > > >I have a site with logins, etc. I was wondering if there's any way to see > >how many users are logged in. I know I could change a database and add one > >to a number when a user logs in, and subtract one when they log off, but > >what if they just go to another site or close their browser? > > I use database managed sessions and count the number of "active" > sessions, like how many sessions have had activity in the last 5 minutes > or so.

« previous php.general (#86998) next »