DEV Community

bamiogunfemi
bamiogunfemi

Posted on

Your guide to Local and Session Storage

Ever been confused by Local and Session Storage? Well this article is here to save you.

Local and Session Storage are part of the web storage API that we have access to on our window object.They are almost the exact same thing, the only difference is that while Session Storage persists throughout the Session( as long as the tab is open, if the tab is ever closed we lose our data ), Local Storage will persist till cleared out(we still have access after closing our browser or tab). In the next post I’ll cover the basics of using the local and Session Storage.

Top comments (0)