Apple WebObjects 3.5 Manuel d'utilisateur Page 122

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 218
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 121
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
Vue de la page 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 217 218

Commentaires sur ces manuels

Pas de commentaire