NewCookie Data Type

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

Example

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