nameString - The name of the cookie.
valueString - The value of the cookie.
domainString (optional) - The domain of the cookie.
hostOnlyBoolean (optional) - Whether the cookie is a host-only cookie.
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.
© 2013–2018 GitHub Inc.
Licensed under the MIT license.