TIMEOUT_SECONDS)) { unset($_SESSION['authenticated']); unset($_SESSION['last_activity']); header("Location: " . $_SERVER['PHP_SELF'] . "?reason=timeout"); exit; } $_SESSION['last_activity'] = time(); } if (isset($_GET['reason']) && $_GET['reason'] === 'timeout') { unset($_SESSION['authenticated']); unset($_SESSION['last_activity']); } // If user is not authenticated, show the login gate if (!isset($_SESSION['authenticated']) || $_SESSION['authenticated'] !== true) { $display_msg = "Staff Access"; if (isset($_GET['reason']) && $_GET['reason'] === 'timeout') { $login_error = "Logged out due to inactivity."; } ?>
custom made Punchcard-System replacement