Cover Page by Bruce Lawson, Remy Sharp

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Chapter 6 Data Storage

Remy Sharp

STORING DATA ASSOCIATED with an application is fundamental in nearly all applications, web or desktop. This can include storing a unique key to track page impression, saving usernames, preferences, and so on. The list is endless.

Up until now, storing data in a web app required you either to 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 it would be stored in cookies.

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

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required