public function importCookies()
    {
        foreach ($this->cookies as $cookie) {
            if (!empty($cookie->getValue())) {
                setcookie($cookie->getName(), $cookie->getValue(), $cookie->getExpires(), $cookie->getPath(), $cookie->getDomain(), $cookie->getSecure() ?? false, $cookie->getHttpOnly());
            } else {
                unset($_COOKIE[$cookie["name"]]);
                setcookie($cookie["name"], null, time() - 3600);
            }
        }
    }