update last access on any action
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 25 Oct 2012 16:03:56 +0000 (18:03 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 25 Oct 2012 16:03:56 +0000 (18:03 +0200)
web/briskin5/index_wr.php
web/index_wr.php

index fbc37c5..d3ace81 100644 (file)
@@ -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");
index 727f62b..faee18c 100644 (file)
@@ -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.");