Javascript utility to switch between localStorage and sessionStorage
Just include the AppStorage.js file before including your application files.
AppStorage is available as a property of the window object.
Use appStorage or window.appStorage to use it.
set _appStorageObject.storageMethod in AppStorage.js to APPSTORAGETYPE.LOCALSTORAGE if you prefer to use localstorage instead
To understand difference between session storage and local storage refer : https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
appStorage.store(key, value);
appStorage.retrieve(key);
appStorage.remove(key);