As far as I know, the only way to get timeout of session data is to store a
timestamp with last access time and check this each time the session data is
referenced..

If the user close the browser window, the session data will timeout and you
don't have to worry.

> -----Ursprungligt meddelande-----
> Från: RSalomo [mailto:[EMAIL PROTECTED]]
> Skickat: den 10 september 2001 10:27
> Till: [EMAIL PROTECTED]
> Ämne: [PHP-DB] automatic logout
>
>
> hello,
> i use session for user authentication in php/mysql.
>
> how to logout the session automatically if:
> there is no activity for a period of time (user forgot to click logout),
> or user just close the browser without logout
> ?
>
> thanks,
> rudy
>
>
> --
> PHP Database 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 Database 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]

Reply via email to