Optional
Readonly
expiresThe Date this cookie expires.
Note: This is calculated at access time using maxAge
when no expires
option is provided to createCookie()
.
Readonly
isTrue if this cookie uses one or more secrets for verification.
Readonly
nameThe 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.
Optional
options: CookieParseOptionsSerializes the given value to a string and returns the Set-Cookie
header.
Optional
options: 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