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