Re: [PHP] Trigger an action on session timeout - feature request?

2007-11-13 Thread Philip Thompson
On Nov 12, 2007 3:19 PM, Jake [EMAIL PROTECTED] wrote: Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a

RE: [PHP] Trigger an action on session timeout - feature request?

2007-11-12 Thread admin
You could simply validate the user with session_start(); $tbaged = false; if (isset($_SESSION['user_id'])) { $user = new User($_SESSION['user_id']); $tbaged = true; else { $login = $_REQUEST['screename']; $password = $_REQUEST['pword']; $login = clean($login); $password =

Re: [PHP] Trigger an action on session timeout - feature request?

2007-11-12 Thread Tomas Telensky
Hi, this is obvious and is not related to the problem. I meant something completely different - launch an action when PHP timeouts/destroys particular session. Regardless of whether the user accesses the page or not. (E.g. for the need to close some records in database, but that's not

Re: [PHP] Trigger an action on session timeout - feature request?

2007-11-12 Thread Jake
Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a workaround like walking through all my sessions for timeouted ones