You'll have to define what you mean by "currently online".

Do you mean actually waiting this moment for HTML to finish streaming to
their browser?

Or do you just mean, in my session files and not timed out yet?

Probably the easiest way to do that would be to use
http://php.net/session-set-save-handler

You could wrap some book-keeping around PHP's internal FILE sessions, or
store them in MySQL and then your simply need to query how many rows there
are in the table.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Ing. Lalka Peter <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 3:22 AM
Subject: Session variables


> Hi!
> I want to know how many users are currently online at my site.
> How can I get this info from php? Can I?
> Thank you for answer.
> Barno
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to