Request.php
public function clearCookies(): void
    {
        $all = array_keys(\is_array($_COOKIE) ? $_COOKIE : []);
        foreach ($all as $key => $value) {
            static::setCookie($value);
        }
    }
public function clearCookies(): void
    {
        $all = array_keys(\is_array($_COOKIE) ? $_COOKIE : []);
        foreach ($all as $key => $value) {
            static::setCookie($value);
        }
    }
Clear all active cookies in the current session