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 ...

Get Building OpenSocial Apps: A Field Guide to Working with the MySpace Platform now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.