O'Reilly logo

Building OpenSocial Apps: A Field Guide to Working with the MySpace Platform by Jessica Whyte, Chad Russell, Chris Cole

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

4. Persisting Information

As your ambitions for what you want to do with OpenSocial grow, so will your needs. One of the first needs you’ll have is persisting information between sessions. Without the help of an external server, you have two options for storing persistent data: the app data store and cookies. In this chapter we’ll compare different methods of persistent storage and show you how to use them.

We’ll grow our sample application and show you how to use persistent storage to allow users to set a custom name for themselves in the game and keep track of their high scores from session to session.

App Data Store

The app data store is your premier option for serverless storage. This is the only storage mechanism that is officially supported ...

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