Chapter 24Offline Apps: Web Storage
(also known as DOM storage) is a simple client-side, key-value system that
lets us store data in the client. It consists of two parts:
The main difference between
sessionStorage is persistence. Data stored using
localStorage persists from session to session. It’s
available until the user or the application deletes it.
Data stored using
sessionStorage, on the other
hand, persists only as long as the browsing context is available. Usually
this means that we lose our
sessionStorage data once the
user closes the browser window or tab. It may, however, persist in browsers
that allow users to save browsing sessions.
In this chapter, we’ll talk about some ...