Application->Request->Cookies[$this->UserKey]; if ($cookie) { $user = $this->UserManager->getUserFromCookie($cookie); if ($user && $user->Name === $this->Application->User->Name) { UserFacade::getInstance()->clearUserAuthKey($user); } } parent::logout(); } } ?>