How I do it for my sites is borrowing from the concept that phpBB uses...
every time a user accesses a page within the site, update the DB with the
username and a timestamp. then have the script that figures out who is on
delete any records older then a specified time, and return the users that
are left. it doesn't display everyone who is on in real time, but any one
who was on within a certain period (usually I stick with 5 minutes)
If any one else has any interesting/creative ways, I'd love to hear them
AC Host Canada
----- Original Message -----
From: "fragmonster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 1:05 AM
Subject: [PHP] who is connected?
> Can you share your method to display the users who are connected to your
> web site?
> I did it, but I don't know if it's a good way.
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php