NewCookie Data Type

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

Example

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