logout idle fix (moved to constants)
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / logout_idle.inc
1 <?php
2
3 // Logout user, if idle for more then LOGOUT_IDLE_SEC seconds
4
5 if (( !isset($_SESSION['last_request'] ) ||
6 ( $_SESSION['last_request'] >= (time() - LOGOUT_IDLE_SEC))) {
7 $_SESSION['last_request'] = time();
8 } else {
9 require_once(INCLUDE_DIR."eventz/logout.inc");
10 logout();
11 }
12
13 ?>
This page took 0.231923 seconds and 4 git commands to generate.