src/ChickenWire/Auth.php
public function logout()
		{

			// Am I authenticated?
			if ($this->isAuthenticated() == false) {

				// Cannot logout!
				return false;

			}

			// Destroy my session
			$this->_authenticated = false;
			unset($_SESSION[self::$_sessionPrefix . $this->name]);
			$this->_user = null;
			return true;

		}
public function logout()
		{

			// Am I authenticated?
			if ($this->isAuthenticated() == false) {

				// Cannot logout!
				return false;

			}

			// Destroy my session
			$this->_authenticated = false;
			unset($_SESSION[self::$_sessionPrefix . $this->name]);
			$this->_user = null;
			return true;

		}
public function logout ( ) { // Am I authenticated? if ( $ this -> isAuthenticated ( ) == false ) { // Cannot logout! return false ; } // Destroy my session $ this -> _authenticated = false ; unset ( $ _SESSION [ self :: $ _sessionPrefix . $ this -> name ] ) ; $ this -> _user = null ; return true ; }
Log out current user
@return boolean Wheter logout was successful
Log out current user