Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > WebObjects Developer's Guide


Table of Contents Previous Section

Using Cookies

Storing the sessionID in a cookie can give your application added benefits. For example, if a client is required to log in to your application then by storing the IDs in a cookie that client will not be forced to log in again if they exit your application and then come back later. This is dependent, of course, on that session being around when the client comes back to your application. You must set the session timeouts to longer periods of time in these situations.

You configure this feature using the WOSession methods:

- setStoresIDsInURLs:
- storesIDsInURLs
- setStoresIDsInCookies:
- storesIDsInCookies

Table of Contents Next Section