Glossary: JavaScript in the Browser
localStorage / sessionStorage
Also written: localStorage, sessionStorage, storage event
Browser stores of string keys and values per origin. localStorage lasts until cleared, sessionStorage only until the tab closes, and other tabs hear changes through the storage event.