Re: [Phplib-users] users online
Brought to you by:
nhruby,
richardarcher
|
From: Michael C. <mdc...@mi...> - 2002-05-22 16:00:01
|
On Wed, May 22, 2002 at 08:52:58AM -0300, Leandro Nery wrote: > Hi all, > > Its possible to know which users are online at the same moment using the > phplib classes of session/auth, etc? Short answer: Count the number of rows in active_sessions where the date is greater than 15 minutes ago (or whatever time you want to use). The best that you can do is say "How many people have viewed a page within the last 15 minutes?" If you're using PHP4 sessions, then you'll have to check your session directory instead. I recommend making a separate session directory for each site. Long answer: Check the archives. This has been discussed at length in the past. Michael -- Michael Darrin Chaney mdc...@mi... http://www.michaelchaney.com/ |