critical fix ensuring Auth can be used outside of Auth directory
This commit is contained in:
parent
d9f5705fd2
commit
a50a385c4e
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
if (!include('auth.php')){
|
||||
header("Location: login.html");
|
||||
header("Location: /smzint/Auth/login.html");
|
||||
echo "401 Sie müssen sich <a href='login.html'>anmelden</a>.";
|
||||
}
|
||||
|
||||
|
|
|
@ -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 . "<br>" . $conn->error;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue