JavaScript Persistent Storage

//localStorage(Stores until data is cleared)
localStorage.name = 'value';
console.log(localStorage.name); // value
delete localStorage.name;
console.log(localStorage.name); // undefined

//sessionStorage(Stores until window is closed)
sessionStorage.name = 'value';
console.log(sessionStorage.name); // value
delete sessionStorage.name;
console.log(sessionStorage.name); // undefined
aus ogola