From: Matteo Nastasi (mop) Date: Thu, 25 Oct 2012 16:03:56 +0000 (+0200) Subject: update last access on any action X-Git-Tag: v4.0.0~28 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=9fa54af90b8e5fe7acf1c1db401c8d9998c0385e;p=brisk.git update last access on any action --- diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index fbc37c5..d3ace81 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -73,9 +73,11 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) log_wr('POSTSPLIT: '.$argz[0].' user->stat: ['.$user->stat.']'); log_wr($user->step, 'bin::index_wr.php: after get_user()'); + + $user->lacc = $curtime; if ($argz[0] == 'ping') { - $user->lacc = $curtime; + log_wr("PING RECEIVED"); } else if (false && $argz[0] == 'shutdown') { log_auth($user_cur->sess, "Shutdown session. delegate to room gc the autologout"); diff --git a/web/index_wr.php b/web/index_wr.php index 727f62b..faee18c 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -197,9 +197,11 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) log_wr('POSTSPLIT: '.$argz[0]); + // LACC UPDATED + $user->lacc = $curtime; + if ($argz[0] == 'ping') { - log_wr("PING RECEIVED, LACC UPDATED\n"); - $user->lacc = $curtime; + log_wr("PING RECEIVED"); } else if ($argz[0] == 'shutdown') { log_auth($user->sess, "Shutdown session.");