From 60f62b2ae411e1e3ba3ed4e09b7cd70e41c36265 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 9 Jul 2022 20:18:25 +0300 Subject: admin: fix cookie unsetting --- lib/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/admin.php b/lib/admin.php index afe3a9e..0f9d610 100644 --- a/lib/admin.php +++ b/lib/admin.php @@ -41,7 +41,7 @@ class admin { public static function unsetCookie(): void { global $config; - setcookie(self::COOKIE_NAME, '', -1, '/', $config['cookie_host']); + setcookie(self::COOKIE_NAME, '', 1, '/', $config['cookie_host']); } public static function logAuth(): void { -- cgit v1.2.3