dwh/session_checker.php
Daeng Deni Mardaeni 5321a5434b first commit
2023-10-02 17:26:17 +07:00

18 lines
268 B
PHP

<?php
include_once 'headerFile.php';
$script_name = basename($_SERVER['SCRIPT_NAME']);
if ($script_name != 'index.php') {
if (!check_session()) {
redirect("./index.php");
exit();
}
} else {
if (!is_null($_SESSION['LAST_LOGIN'])) {
check_session();
}
}
?>