admin: fix deprecated setcookie() call

This commit is contained in:
Evgeny Zinoviev 2022-07-09 20:12:08 +03:00
parent 39500328f4
commit 1e5d5a8003

View File

@ -41,7 +41,7 @@ class admin {
public static function unsetCookie(): void {
global $config;
setcookie(self::COOKIE_NAME, null, -1, '/', $config['cookie_host']);
setcookie(self::COOKIE_NAME, '', -1, '/', $config['cookie_host']);
}
public static function logAuth(): void {