Re: refresh for php/mysql chat
| From: | Jason Brooke | Date: | Sun, 07 Jan 2001 12:46:55 +0000 |
| Subject: | Re: refresh for php/mysql chat | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5668@lists.php.net to get a copy of this message | ||
Put a timestamp next to their entry - update the tmiestamp each time they
make a request. If the timestamp is less than time() - refresh_time, you can
assume they're gone.
> Also, to show the users online, I simply do a "select" retrieve from the
> users table, and I delete an entry if the user logs out. But what if the
> user does not log out and simply closes the window - what have you done /
or
> would do to delete the entry from the table? Is there a way to check all
the
> cookies (I'm using cookie for login) and see if there is a certain value
of
> the cookie that does not exist? If I could do that, then I could delete
the
> entry...
>
>
> Thanks,
> sarahana