cookie

Version

Holder for a single cookie's attributes.

Syntax

cookie:
name: <string> # required
value: <string> # required
domain: <string>
expires: <string>
httpOnly: <boolean>
maxAge: <number>
path: <string>
sameSite: lax
secure: <boolean>
cookie:
  name: <string> # required
  value: <string> # required
  domain: <string>
  expires: <string>
  httpOnly: <boolean>
  maxAge: <number>
  path: <string>
  sameSite: lax
  secure: <boolean>

Attributes

NameRequiredDefaultDescriptionExamples
domainfalse-Sets the cookie domain.-
expiresfalse-Sets the Expires attribute.-
httpOnlyfalsefalseSets the HttpOnly flag.-
maxAgefalse-1Sets the Max-Age for the cookie.-
nametrue-Sets the cookie name.-
pathfalse"/"Sets the cookie path.-
sameSitefalseLAXSets the SameSite policy.-
securefalsefalseSets the Secure flag.-
valuetrue-Sets the cookie value.-

Can be used in