Web technologies have taken a long time to progress.
A lot of the standards we see today are because browsers decided to implement new features.
HTML5 is now just supposed to be HTML. It is supposed to be a living standard.
Pamela needs an HTML app that helps choose her hair color.
Client-Side Storage
- cookies
- Flash Storage
- Internet Explorer UserData
- Google Gears
- Dojo Storage
- window.name
Cookies are used for all types of tracking, but they have issues with security, user trust (can be disabled), performance and size.
In the HTML spec, they considered the issues and came up with the following solutions.
- Web Storage APIs
- IndexedDB
- File System APIs
- Application Cache
- …cookies
localStorage
- Key / value pairs – hash table
- Persistent on page reloads
- Avoids HTTP overhead of cookies