cookie

Version

Holder for a single cookie's attributes.

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