NewCookie Data Type

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

Example

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