Instance Property

HTTPShouldSetCookies

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

Declaration

@property BOOL HTTPShouldSetCookies;

Discussion

This property controls whether tasks within sessions based on this configuration should automatically provide cookies from the shared cookie store when making requests.

If you want to provide cookies yourself, set this value to NO and provide a Cookie header either through the session’s HTTPAdditionalHeaders property or on a per-request level using a custom NSURLRequest object.

The default value is YES.

See Also

Setting Cookie Policies

HTTPCookieAcceptPolicy

A policy constant that determines when cookies should be accepted.

HTTPCookieStorage

The cookie store for storing cookies within this session.

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