Instance Property


The cookie store for storing cookies within this session.


@property(retain) NSHTTPCookieStorage *HTTPCookieStorage;


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


A policy constant that determines when cookies should be accepted.


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


A container that manages the storage of cookies.


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