Commit | Line | Data |
---|---|---|
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 | ?> |