src/Charcoal/User/AbstractUser.php
public function logout()
    {
        // Irrelevant call...
        if (!$this->id()) {
            return false;
        }

        $key = static::sessionKey();

        $_SESSION[$key] = null;
        unset($_SESSION[$key], static::$authenticatedUser[$key]);

        return true;
    }
public function logout()
    {
        // Irrelevant call...
        if (!$this->id()) {
            return false;
        }

        $key = static::sessionKey();

        $_SESSION[$key] = null;
        unset($_SESSION[$key], static::$authenticatedUser[$key]);

        return true;
    }
public function logout ( ) { // Irrelevant call... if ( ! $ this -> id ( ) ) { return false ; } $ key = static :: sessionKey ( ) ; $ _SESSION [ $ key ] = null ; unset ( $ _SESSION [ $ key ] , static :: $ authenticatedUser [ $ key ] ) ; return true ; }
Empties the session var associated to the session key.

@return boolean Logged out or not.
Empties the session var associated to the session key .