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
expiry number  
maxAge number required int
secure boolean required boolean
sameSite SameSite  
httpOnly boolean required boolean
comment string  
Properties inherited from Cookie
domain string  
path string  
value string  
name string  
version number required int

Example

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