The cookie store for storing cookies within this session.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
@property(retain) NSHTTPCookie Storage *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 shared
cookie storage object.
For ephemeral
sessions, the default value is a private cookie storage object that stores data in memory only, and is destroyed when you invalidate the session.