They are no longer used as of WoltLab Suite 5.4, however the removal remained
in the code to clean up the browser's cookie store on logout. Remove it, the
cookies will naturally expire in the future.
WCF::getSession()->delete();
- // remove cookies
- if (isset($_COOKIE[COOKIE_PREFIX . 'userID'])) {
- HeaderUtil::setCookie('userID', 0);
- }
- if (isset($_COOKIE[COOKIE_PREFIX . 'password'])) {
- HeaderUtil::setCookie('password', '');
- }
-
$this->executed();
// forward to index page
} else {
self::$forceLogout = true;
- // remove cookies
- if (isset($_COOKIE[COOKIE_PREFIX . 'userID'])) {
- HeaderUtil::setCookie('userID', 0);
- }
- if (isset($_COOKIE[COOKIE_PREFIX . 'password'])) {
- HeaderUtil::setCookie('password', '');
- }
-
throw new NamedUserException(self::getLanguage()->getDynamicVariable('wcf.user.error.isBanned'));
}
}