IdentityCookie
Identity SDK cookie helpers
Constructor Summary
| Public Constructor | ||
| public |
constructor(config: Object) Set a list of available cookie names |
|
Method Summary
| Public Methods | ||
| public |
Get from document cookies |
|
| public |
Get enabled flag |
|
| public |
removeCookie(name: string) Remove from cookies |
|
| public |
Set a wildcard domain cookie with an expiry of 1 year (12 months) |
|
| public |
setEnabled(isEnabled: boolean) Set enabled flag |
|
| public |
Subscribe to cookie changes |
|
| public |
unsubscribe(id: number) Unsubscribe from cookie changes |
|
Public Constructors
Public Methods
public removeCookie(name: string) source
Remove from cookies
Params:
| Name | Type | Attribute | Description |
| name | string |
public setCookie(name: string, value: string, options: Object, expires: number) source
Set a wildcard domain cookie with an expiry of 1 year (12 months)
public setEnabled(isEnabled: boolean) source
Set enabled flag
Params:
| Name | Type | Attribute | Description |
| isEnabled | boolean |
Manual
Reference
Source
Test
