NewCookie Data Type

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

Example

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