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)Properties | Type | Description |
---|---|---|
name | string | : name of the cookie |
Additional properties for advanced use cases
Properties | Type | Description |
---|---|---|
crypt | boolean | : encrypt the cookie (not usable by the server) |
path | string | : scope of the cookie |
ttl | number | : time to live of the cookie (in seconds) |
value | string | : value of the cookie |