Exemplo n.º 1
0
 public function logout()
 {
     setcookie(self::$COOKIE_SESSION, "", -1);
     $is_timeout = $this->isTimedOut();
     $this->_remember = Remember::read($this->_pdo);
     if ($this->_remember) {
         $this->_remember->remove();
     }
     unset($this->_remember);
     unset($this->_user);
     session_destroy();
     session_start();
     if ($is_timeout) {
         $_SESSION[self::$SESSION_EXP] = true;
     }
     Utility::displayPage("/login/");
 }