Web Storage concepts and usage

The two mechanisms within Web Storage are as follows:

  • 1
    sessionStorage

     maintains a separate storage area for each given origin that’s available for the duration of the page session (as long as the browser is open, including page reloads and restores)

  • 1
    localStorage

     does the same thing, but persists even when the browser is closed and reopened.

Categories: Lessons - Snippets

Leave a Reply

Your email address will not be published. Required fields are marked *