diff --git a/includes/session_check.php b/includes/session_check.php old mode 100755 new mode 100644 index 86d4c4d..2675ff1 --- a/includes/session_check.php +++ b/includes/session_check.php @@ -24,11 +24,7 @@ function checkSession(): void validateSessionDomain(); if (!isset($_SESSION['user_id'])) { - $basePath = dirname($_SERVER['PHP_SELF']); - if ($basePath === '/' || $basePath === '\\') { - $basePath = ''; - } - header('Location: ' . $basePath . '/login.php'); + header('Location: /login.php'); exit; } }