Commit | Line | Data |
---|---|---|
f046f788 | 1 | <?php |
24634046 | 2 | |
3 | // Logout user, if idle for more then LOGOUT_IDLE_SEC seconds | |
4 | ||
db7354d8 | 5 | if (( !isset($_SESSION['last_request'] )) || |
24634046 | 6 | ( $_SESSION['last_request'] >= (time() - LOGOUT_IDLE_SEC))) { |
f046f788 H |
7 | $_SESSION['last_request'] = time(); |
8 | } else { | |
9 | require_once(INCLUDE_DIR."eventz/logout.inc"); | |
10 | logout(); | |
11 | } | |
24634046 | 12 | |
13 | ?> |