Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 25
    Also, IndexedDB is supported by recent browsers only: IE 10+, Chrome 23+, Firefox 10+, Opera 15+, and Android 4.4+. Commented Mar 19, 2014 at 18:41
  • 1
    @yannis, is there any difference between DOM storage and Web storage? Commented Apr 23, 2017 at 15:20
  • 2
    No, localStorage is not deleted when the browser closes. It only clears when you do it either programmatically or manually (such as in a browser's Dev Tools). However, someone in another SO thread claims it got cleared on him when he updated Chrome. Commented May 10, 2020 at 19:30
  • 2
    sessionStorage is the one deleted when the browser is closed. Commented May 14, 2020 at 13:40
  • 1
    More specifically, sessionStorage is deleted when the Tab is closed, and each browser tab gets its own separate sessionStorage, so you can't share a sessionStorage instance across multiple tabs, even on the same hostname. Commented Oct 28, 2020 at 16:04