classes/BearCMS/CurrentUser.php
public function logout(): void
    {
        Internal\Cookies::setList(Internal\Cookies::TYPE_SERVER, [
            ['name' => '_s', 'value' => 'deleted', 'expire' => 0],
            ['name' => '_a', 'value' => 'deleted', 'expire' => 0]
        ]);
        self::$cache = [];
    }
public function logout(): void
    {
        Internal\Cookies::setList(Internal\Cookies::TYPE_SERVER, [
            ['name' => '_s', 'value' => 'deleted', 'expire' => 0],
            ['name' => '_a', 'value' => 'deleted', 'expire' => 0]
        ]);
        self::$cache = [];
    }
public function logout ( ) : void { Internal \ Cookies :: setList ( Internal \ Cookies :: TYPE_SERVER , [ [ 'name' => '_s' , 'value' => 'deleted' , 'expire' => 0 ] , [ 'name' => '_a' , 'value' => 'deleted' , 'expire' => 0 ] ] ) ; self :: $ cache = [ ] ; }
Logout the current user.

@param string $userID
@throws \InvalidArgumentException
Logout the current user .