Varie provides a service that interacts with cookies.
To set something in to the storage :
this.cookieService.set(
name: string,
value: any,
days?: number,
path?: string,
domain?: string,
secure?: boolean
);
To get something in to the storage :
let token = this.cookieService.get("token");
To remove something in to the storage :
this.cookieService.remove(name: string, path?: string, domain?: string);