An important part of most applications is the capability to persist data, such as remembering information about a specific user. Persisting user data can be done at the server by associating a user with a login ID and then passing specific information back to a server. The information is then written to a database and can be loaded back into the application when needed.
Using Adobe Flex, it is also possible to persist data on the client side, actually within Flash Player using the SharedObject class. Shared objects are similar to HTTP cookies, but are much more powerful because you can store complex data structures within them. In this lesson, you will use the SharedObject class to store information about which grocery items a user is interested in purchasing.
The Save For Later button writes items in the shopping cart into a shared object on the local machine for later retrieval.