Manipulating Cookies & Local Storage With cookies-localstorage.js Library

Category: Javascript | April 30, 2018
Author: anandnat
Views Total: 646
Official Page: Go to website
Last Update: April 30, 2018
License: MIT

Preview:

Manipulating Cookies & Local Storage With cookies-localstorage.js Library

Description:

A basic cookie and local storage manipulation library used to set and get cookies or local storage values on the client side.

How to use it:

Import the ‘cookies-localstorage.js’ script into the document.

<script src="cookies-localstorage.js"></script>

Set and get cookies.

// set
CookieManage.setCookie("cookie name",'cookie value');

// get
CookieManage.getCookie("cookie name");

Set and get local storage.

// set
LocalStrManage.setLocalStorage("name","value");

// get
LocalStrManage.getLocalStorage("name");

You Might Be Interested In:


Leave a Reply