Merge pull request #1350 from pi-hole/cookies-delete

Properly delete the `persistentlogin` cookie
This commit is contained in:
Adam Warner
2020-05-23 08:51:31 +01:00
committed by GitHub
+2 -2
View File
@@ -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