NewCookie Data Type

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

Example

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