namestring - The name of the cookie.
valuestring - The value of the cookie.
domainstring (optional) - The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains.
hostOnlyboolean (optional) - Whether the cookie is a host-only cookie; this will only be
trueif no domain was passed.
pathstring (optional) - The path of the cookie.
secureboolean (optional) - Whether the cookie is marked as secure.
httpOnlyboolean (optional) - Whether the cookie is marked as HTTP only.
sessionboolean (optional) - Whether the cookie is a session cookie or a persistent cookie with an expiration date.
expirationDateDouble (optional) - The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.
sameSitestring - The Same Site policy applied to this cookie. Can be