Local Storage

With local storage, web applications can store data locally within the user's browser.

  • Unlike cookies, the storage limit is far larger (at least 5MB) and information is never transferred to the server.

localStorage Object

  • The localStorage object stores the data with no expiration date.

  • data are stored as name/value pairs with String format

sessionStorage Object

  • it stores the data for only one session. The data is deleted when the user closes the specific browser tab.

results matching ""

    No results matching ""