self
cookie
The cookie to update
name
string
The new name of the cookie
value
string
The new value of the cookie
expires
dateTime
The new expiration date of the cookie
max-age
number
The new maximum age of the cookie in seconds
path
string
The new path for which the cookie is valid
secure
bool
Whether the cookie should only be sent over HTTPS
same-site
bool
Whether the cookie should be restricted to same-site requests
return
cookie
The updated cookie