Client-Side Storage
- localStorage
-
Stores data in key/value pairs, tied to a domain, and persists across browser sessions. [C5, F3.5, S4, IE8, O10.5, iOS, A]
Referenced in Tip 27, Saving Preferences with Web Storage
- sessionStorage
-
Stores data in key/value pairs, tied to a domain, and is erased when a browser session ends. [C5, F3.5, S4, IE8, O10.5, iOS, A]
Referenced in Tip 27, Saving Preferences with Web Storage
- IndexedDB
-
An in-browser object store that persists across sessions. [C25, F10, IE10]
- Web SQL Databases
-
Fully relational databases with support for creating tables, inserts, updates, deletes, and selects, with transactions. Tied to a domain and persistent across sessions. No longer an active specification. [C5, S3.2, O10.5, ...
Get HTML5 and CSS3, 2nd Edition 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.