Chapter 24Offline Apps: Web Storage
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:
localStorage
and
sessionStorage
.
The main difference between localStorage
and
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 ...
Get Jump Start HTML5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.