diff --git a/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php b/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php index 95614355ef5c3466c4e63e40493f8340dfaa84b7..f5e92c18cf7cc1a9715d360accc4a0df41dcec1f 100644 --- a/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php +++ b/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php @@ -414,7 +414,7 @@ class FrontendUserAuthentication extends \TYPO3\CMS\Core\Authentication\Abstract // Remove session-data $this->removeSessionData(); // Remove cookie if not logged in as the session data is removed as well - if (!empty($this->user['uid'])) { + if (empty($this->user['uid'])) { $this->removeCookie($this->name); } } elseif ($this->sessionDataTimestamp === NULL) {