Skip to main content

addCookie

addCookie(name: string,value: string,crypt: boolean,ttl: number,path: string): Promise<void>

Add a browser cookie (created on the browser side)

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
namestring: name of the cookie
Additional properties for advanced use cases
PropertiesTypeDescription
cryptboolean: encrypt the cookie (not usable by the server)
pathstring: scope of the cookie
ttlnumber: time to live of the cookie (in seconds)
valuestring: value of the cookie