summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-09 20:18:25 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-09 20:18:25 +0300
commit60f62b2ae411e1e3ba3ed4e09b7cd70e41c36265 (patch)
treef11697473a50835f35155945b5b6c2e749ed2ba9
parent1e5d5a80039e0a89380d7fe4fde89b6fed3c0b9a (diff)
admin: fix cookie unsetting
-rw-r--r--lib/admin.php2
1 files changed, 1 insertions, 1 deletions
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 {