1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 12:23:48 +01:00

auth.php: check if the cookie is set before deletion

This commit is contained in:
Zankaria 2024-04-30 15:58:42 +02:00
parent 9db8444c3c
commit 0c51d46cdf

View File

@ -168,7 +168,10 @@ function destroyCookies() {
];
foreach ($options_multi as $name => $options) {
setcookie($name, 'deleted', $options);
if (isset($_COOKIE[$name])) {
setcookie($name, 'deleted', $options);
unset($_COOKIE[$name]);
}
}
}