Top

Managing State

  • Why Do You Need to Store State?
  • This section describes when and why you need to store state in a WebObjects application.

  • How WOApplication Manages State
  • This section describes the sequence of events that occurs when the application object receives a request. It describes how and when state is stored and restored in a running application.

  • Variables and State
  • This section explains how to declare variables so that their state is stored.

  • Storing State in the Application vs. Storing State in the Page
  • By default, WebObjects stores state on the application server. However, it also provides a mechanism for storing state in the page. This section discusses the pros and cons of each approach.

  • How to Store State in the Page
  • This section describes what you need to do to store state in the page.

  • Implementing Your Own State Storage
  • Instead of using the mechanisms provided by WebObjects, you can implement your own state storage solution. This section uses an example that archives state in the file system to explain what you need to do.

  • Setting Session TimeOut
  • This section describes the methods you can use to explicitly clear a given session's state.

  • Summary
  • This section summarizes the key points covered in the chapter.

    Table of Contents Next Section