my favorite way "to session" people is by sticking an MD5 hash string to
every browser (except the once having it already) as a cookie valid for the
next 32 years or so. Then I log their actions in a database. This way I can
practically do any kind of checks as long as user accepts cookies, otherwise
I would issue them a static GET variable sticking to every URL.
So, answering your question: - YES.
If you would be sessioning users in the same way as I do, you would be able
to log them in a db with a time stamp and check against it on every request
- "your own clock is the best clock".
Besides that, you can also keep setting cookies for a limited amount of time
and then check if the variable exists or not (expired and thus not sent) - a
silly traditional method, but works.
Sessions also have their own customizable lifetime. Which works in the
exactly same way as cookies do.
read on php.net/sessions
Cheers,
Maxim Maletsky
www.PHPBeginner.com
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 8:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] session timeouts
Hi,
I'm writing a web survey in php and trying to set session timeouts. I have
a main script that starts the session and displays the pages. Is there a
way I can make the session timeout if they idle for too long?
Thanks,
Nigel
--
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]