mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Properly delete the persistentlogin cookie
The previous solution did not delete the cookie. Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
if(isset($_GET["logout"]))
|
||||
{
|
||||
session_unset();
|
||||
setcookie('persistentlogin', '');
|
||||
setcookie('persistentlogin', '', 1);
|
||||
header('Location: index.php');
|
||||
exit();
|
||||
}
|
||||
@@ -52,7 +52,7 @@
|
||||
{
|
||||
// Invalid cookie
|
||||
$auth = false;
|
||||
setcookie('persistentlogin', '');
|
||||
setcookie('persistentlogin', '', 1);
|
||||
}
|
||||
}
|
||||
// Compare doubly hashes password input with saved hash
|
||||
|
||||
Reference in New Issue
Block a user