NSHTTPCookieStorage implements a singleton object (shared instance) that manages storage of cookies. Each cookie is represented by an instance of the
NSHTTPCookie class. As a rule, cookies are shared among all applications and are kept in sync across process boundaries. Session cookies (where the cookie object’s
sessionOnly method returns
YES) are local to a single process and are not shared.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
In macOS 10.9 and later and iOS 7 and later,
NSHTTPCookieStorage is thread safe.