CookieStorage
import {CookieStorage} from 'cabbie-sync';
Managing cookie-storage
Methods
clear(): void
Delete all cookies visible to the current page.
getCookie(name): Cookie | void
- name
- string
Retrieve a specific cookie by name that is visible to the current page.
getCookies(): Array<Cookie>
Retrieve all cookies visible to the current page.
getKeys(): Array<string>
Retrieve all cookie names visible to the current page.
getSize(): number
Get the number of items in the storage
removeCookie(name): void
- name
- string
Delete the cookie with the given name.