X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Flogout_idle.inc;h=783c93447665f1dbd971bd7bbef1e0a5d6f9e89e;hb=HEAD;hp=70955efb6ad9136661d5bcfa8a159c12a1637c59;hpb=24634046428a423bcb371af50523d82bfb3c3a92;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/logout_idle.inc b/wwwroot/inc/logout_idle.inc index 70955ef..783c934 100644 --- a/wwwroot/inc/logout_idle.inc +++ b/wwwroot/inc/logout_idle.inc @@ -2,7 +2,7 @@ // Logout user, if idle for more then LOGOUT_IDLE_SEC seconds -if (( !isset($_SESSION['last_request'] ) || +if (( !isset($_SESSION['last_request'] )) || ( $_SESSION['last_request'] >= (time() - LOGOUT_IDLE_SEC))) { $_SESSION['last_request'] = time(); } else {