public function logout() { if (isNull($this->getLoggedUser())) { return FALSE; } $this->_mapper->deleteUserSession($this->getLoggedUser()->id()); $this->_loggedUser = NULL; $this->_cookie->clearId(); return TRUE; }