Store.js: Browser Storage

Store.js provides a key/value client-side HTML 5 storage function for all current browsers. It supports a range of plug-ins for extra functionality.

Basic API usage examples

/*global store*/

function storeUser(){

 // Store current user
store.set('user', '<user value>');

// Get current user
store.get('user');

// Remove current user
store.remove('user');

// Clear all keys
store.clearAll();

}