O'Reilly logo

Introducing HTML5, Second Edition by Remy Sharp, Bruce Lawson

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

Chapter 6: Data Storage

Remy Sharp

DATA STORAGE IS fundamental in nearly all applications, web or desktop. This can include storing a unique key to track page impressions, saving usernames and preferences, and so on. The list is endless.

Up until now, storing data in a web app required you to either store it on the server side and create some linking key between the client and the server—which means your data is split between locations—or store it in cookies on the client.

Cookies suck. Not the edible ones, the ones in the browser. They’re rubbish. There’s a number of issues with cookies that make them a pain to work with. On starting any new project that requires cookies, I’ll immediately go hunting for my cookie JavaScript library. If I can’t ...

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