GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed some warnings
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
inc
/
logout_idle.inc
diff --git
a/wwwroot/inc/logout_idle.inc
b/wwwroot/inc/logout_idle.inc
index 8b5abb42bfafd3625265983ec2c14e9b1974b943..783c93447665f1dbd971bd7bbef1e0a5d6f9e89e 100644
(file)
--- a/
wwwroot/inc/logout_idle.inc
+++ b/
wwwroot/inc/logout_idle.inc
@@
-1,7
+1,13
@@
<?php
<?php
-if(!isset($_SESSION['last_request']) || $_SESSION['last_request'] >= (time() - 60*60)) { //TODO predelat timeout do konstanty v nastaveni
+
+// Logout user, if idle for more then LOGOUT_IDLE_SEC seconds
+
+if (( !isset($_SESSION['last_request'] )) ||
+ ( $_SESSION['last_request'] >= (time() - LOGOUT_IDLE_SEC))) {
$_SESSION['last_request'] = time();
} else {
require_once(INCLUDE_DIR."eventz/logout.inc");
logout();
}
$_SESSION['last_request'] = time();
} else {
require_once(INCLUDE_DIR."eventz/logout.inc");
logout();
}
+
+?>
This page took
0.112058 seconds
and
4
git commands to generate.