O'Reilly logo

Instant HTML5 Local Storage How-to by Alex Libby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preface

A question: how many times have you visited a site, where it says "Hello,…" followed by your name? A few hundred…? A thousand…? Lost count…?

I have no doubt that you've probably visited sites, such as Amazon, where this innocuous piece of text is very likely to be displayed using cookies. We've grown accustomed to seeing text such as this everywhere, but it was Netscape's pioneering work back in 1994 that made this possible.

But, I hear you ask, what do cookies have to do with Local Storage? It's simple, cookies are the forerunners for what we now know as Local Storage. In their heyday, cookies worked well, but they have now become old technology. What if I was to say that you could store more than simple text in a browser? How about images? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required