Webiny\Component\Http\Session::delete PHP Method

delete() public method

Removes the given $key from session.
public delete ( string $key ) : boolean
$key string Name of the session key you wish to remove.
return boolean
    public function delete($key)
    {
        $this->sessionBag->removeKey($key);
        unset($_SESSION[$key]);
        return true;
    }