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
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 =
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
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
4 matches
Mail list logo