RE: [PHP] Best way to frequently check database?
| From: | Rodolfo Gonzalez | Date: | Thu, 31 Jan 2002 20:48:49 +0000 |
| Subject: | RE: [PHP] Best way to frequently check database? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83005@lists.php.net to get a copy of this message | ||
On Thu, 31 Jan 2002, Rick Emery wrote:
> To timeout users after 20 minutes, use a cookie which is set for 20 minutes.
But once again you can have problems with cookies, they're not reliable
(user can have cookies support turned off) and they tend to be good for
CSS attacks :(
You could have a timestamp updated in every access to a page, and then a
cron job to delete the entries with timestamps older than some interval
of time. But I guess that if your app will have tons of load, this is not
a very good solucion :)
Regards.