NewCookie Data Type

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

Example

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