Re: who is connected?
| From: | Jason Reid | Date: | Wed, 18 Dec 2002 09:09:03 +0000 |
| Subject: | Re: who is connected? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128666@lists.php.net to get a copy of this message | ||
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
also.
Jason Reid
jason@achost.ca
--
AC Host Canada
www.achost.ca
----- Original Message -----
From: "fragmonster" <frederic@argyro.net>
To: <php-general@lists.php.net>
Sent: Wednesday, December 18, 2002 1:05 AM
Subject: [PHP] who is connected?
> Hello,
> 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
>