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

Example

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