Search Mac Reference Library
WebObjects 4.5 Developer Documentation
Table of Contents
Previous
Next
PATH
Documentation
>
WebObjects 4.5
>
WebObjects Developer's Guide
Table of Contents
Previous Section
Using awake and sleep
Another strategy for managing session state is to create it at the beginning of the request-response loop and then release it at the end. The session object's
awake
and
sleep
methods provide the hooks you need to implement this strategy. A session object receives an
awake
message at the beginning of the request-response loop (where you can re-initialize the session state) and a
sleep
message at the end (where you can release it). Remember that
awake
and
sleep
are not sent during the direct action request-response loop, but the direct action request-response loop does not use session objects by default.
Table of Contents
Next Section
Legacy
Legacy Mac OS X Reference Library
WebObjects 4.5 Developer Documentation