D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

NewCookie Data Type

Properties
name data type constraints description
maxAge number required int
sameSite SameSite  
secure boolean required boolean
httpOnly boolean required boolean
comment string  
expiry number  
Properties inherited from Cookie
path string  
version number required int
domain string  
value string  
name string  

Example

{
  "maxAge" : 12345,
  "sameSite" : "LAX",
  "secure" : true,
  "httpOnly" : true,
  "comment" : "...",
  "expiry" : 12345,
  "path" : "...",
  "version" : 12345,
  "domain" : "...",
  "value" : "...",
  "name" : "..."
}