Optional ReadonlyexpiresThe Date this cookie expires.
Note: This is calculated at access time using maxAge when no expires
option is provided to createCookie().
ReadonlyisTrue if this cookie uses one or more secrets for verification.
ReadonlynameThe name of the cookie, used in the Cookie and Set-Cookie headers.
Parses a raw Cookie header and returns the value of this cookie or
null if it's not present.
Optionaloptions: CookieParseOptionsSerializes the given value to a string and returns the Set-Cookie
header.
Optionaloptions: CookieSerializeOptions
A HTTP cookie.
A Cookie is a logical container for metadata about a HTTP cookie; its name and options. But it doesn't contain a value. Instead, it has
parse()andserialize()methods that allow a single instance to be reused for parsing/encoding multiple different values.See
https://remix.run/utils/cookies#cookie-api