Skip to main content Link Search Menu Expand Document (external link)

Cookie Object

Properties

name (string)

The name of the cookie

value (string)

The value of the cookie.

domain (string)

The domain of the cookie.

path (string)

The path of the cookie.

secure (boolean)

Whether the cookie should be marked as Secure.

httpOnly (boolean)

Whether the cookie should be marked as HTTP only.

expirationDat (number`)

The expiration date of the cookie as the number of seconds since the UNIX epoch.

sameSite (string)

The Same Site that applies to this cookie.