diff --git a/index.php b/index.php index 53272ee..0503d17 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ */ if (!include('auth.php')){ - header("Location: login.html"); + header("Location: /smzint/Auth/login.html"); echo "401 Sie müssen sich anmelden."; } diff --git a/login.php b/login.php index bf2fc7d..6d6cd0e 100644 --- a/login.php +++ b/login.php @@ -56,7 +56,7 @@ function createSession($uid){ if ($conn->query($sql) === TRUE) { // echo "New record created successfully"; - setcookie("SMZ-Auth", $sessionID, $expiry); + setcookie("SMZ-Auth", $sessionID, $expiry, "/"); } else { echo "Error: " . $sql . "
" . $conn->error; }