src/Auth.php
public function logout($destroy = false)
	{
		if ($destroy === true) {
			$this->_session->destroy();
		} else {
			$this->_session->delete($this->sessionKey());
			$this->_session->regenerate();
		}
		return ( ! $this->loggedIn());
	}
public function logout($destroy = false)
	{
		if ($destroy === true) {
			$this->_session->destroy();
		} else {
			$this->_session->delete($this->sessionKey());
			$this->_session->regenerate();
		}
		return ( ! $this->loggedIn());
	}
public function logout ( $ destroy = false ) { if ( $ destroy === true ) { $ this -> _session -> destroy ( ) ; } else { $ this -> _session -> delete ( $ this -> sessionKey ( ) ) ; $ this -> _session -> regenerate ( ) ; } return ( ! $ this -> loggedIn ( ) ) ; }
Log out a user by removing the related session variables.
@param boolean $destroy
@return boolean
Log out a user by removing the related session variables .