RE: [PHP] Best way to frequently check database?

2002-01-31 Thread Rick Emery

To timeout users after 20 minutes, use a cookie which is set for 20 minutes.

I'm not exactly sure what you are attempting to limit on database: 100
entries per hour, per day, per year, concurrently?

-Original Message-
From: Hawk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 3:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Best way to frequently check database?


Let's say I have a database that recieves new information about 6
times/minute and I want the database to be checked to frequently to limit
the maximum entrys to the database to.. let's say 100.
And also timeout users if their session has been inactive for, let's say 20
minutes.



-- 
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]

-- 
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]




RE: [PHP] Best way to frequently check database?

2002-01-31 Thread Rodolfo Gonzalez

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.


-- 
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]