PATH  WebObjects 4.0 Documentation > What's New in WebObjects 4.0

Table of Contents Previous Section

Storing Session and Instance IDs

The WOSession class provides methods for storing session and instance IDs in both cookies and in URLs. See Cookie API for a listing of the methods used to store IDs in cookies. The following table lists those WOSession methods you use to store IDs in URLs:
WOSession
Method Description
setStoresIDsInURLs: Controls whether session and instance IDs are stored in URLs.
storesIDsInURLs Returns whether session and instance IDs are stored in URLs.

You should store IDs either in URLs or in cookies, but not both. Enabling both ID storage mechanisms (cookies and URLs) can have unpredictable results.

Table of Contents Next Section