public function logout($hash)
    {
        if (strlen($hash) != self::HASH_LENGTH) {
            return false;
        }

        $this->isAuthenticated = false;
        $this->currentuser = null;

        return $this->deleteSession($hash);
    }
public function logout($hash)
    {
        if (strlen($hash) != self::HASH_LENGTH) {
            return false;
        }

        $this->isAuthenticated = false;
        $this->currentuser = null;

        return $this->deleteSession($hash);
    }
public function logout ( $ hash ) { if ( strlen ( $ hash ) != self :: HASH_LENGTH ) { return false ; } $ this -> isAuthenticated = false ; $ this -> currentuser = null ; return $ this -> deleteSession ( $ hash ) ; }
Logs out the session, identified by hash
@param string $hash
@return boolean
Logs out the session identified by hash