PHP will do this for you. See the setting "session.gc_maxlifetime" in the
php.ini file. This sets the session lifetime.
Kirk
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Sessions Q.
>
>
> Hi,
>
> I currently have sessions working nicely on my site, but I
> want to add a
> timeout feature. What would be the best method, grabbing the
> server time and
> setting it using the session_register, and then running a
> time check so if
> the session time is more than one hour old destroy it??
>
> Ade
>
> --
> 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]