Web APIsLesson 58Free preview
Web Storage API
This lesson is part of HTML · All levels
Summary
The Web Storage API provides a way to store data on the client side in a pair of key values, namely permanent localStorage and sessionStorage that is lost when the tab is closed. Unlike cookies, Web Storage can store larger amounts of data and not be automatically sent to servers. Data is easily accessible through the object.
Key points
- LocalStorage stores the data permanently, sessionStorage disappears when the tab is closed
- Data is stored as a text-based key-value pair
- It's much larger than cookies.
- Data is not automatically sent to the server like cookies
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.