public function clearCookies(): void
    {
        $all = array_keys(\is_array($_COOKIE) ? $_COOKIE : []);
        foreach ($all as $key => $value) {
            static::setCookie($value);
        }
    }