Instance Property

HTTPCookieStorage

The cookie store for storing cookies within this session.

Declaration

@property(retain) NSHTTPCookieStorage *HTTPCookieStorage;

Discussion

This property determines the cookie storage object used by all tasks within sessions based on this configuration.

To disable cookie storage, set this property to nil.

For default and background sessions, the default value is the sharedHTTPCookieStorage cookie storage object.

For ephemeralSessionConfiguration sessions, the default value is a private cookie storage object that stores data in memory only, and is destroyed when you invalidate the session.

See Also

Setting Cookie Policies

HTTPCookieAcceptPolicy

A policy constant that determines when cookies should be accepted.

HTTPShouldSetCookies

A Boolean value that determines whether requests should contain cookies from the cookie store.

NSHTTPCookieStorage

A container that manages the storage of cookies.

NSHTTPCookie

A representation of an HTTP cookie.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software