A closer look at storage strategies – Apple WebObjects 3.5 User Manual
Page 122
Chapter 7
Managing State
122
A Closer Look at Storage Strategies
To compare and further understand state-storage options, look at the
SessionStores sample application. This application presents the user with a
choice of storage strategies:
Figure 33. SessionStores: Storage Choices
Once a storage strategy has been chosen, the application plays a guessing game
with the user:
Figure 34. SessionStores: Guessing Game
As you can see, the application keeps track of a user’s previous guesses within a
session—these guesses are part of the state that must be stored from cycle to
cycle.
The SessionStores example was designed to illustrate WebObjects’ support for
various state storage strategies, so it lets you switch between strategies while the
application is running. This is not a design you should emulate in your
Other
Performance can suffer
if lots of data is passed
back and forth between
client and server. State
can become out of sync,
especially when using
frames.
Client can refuse to
accept cookies.
State in Server
State in Page
State in Cookies
Custom Storage