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

Example

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