NSHTTPCookie implements a singleton object (shared instance) that manages storage of cookies. Each cookie is represented by an instance of the
HTTPCookie 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
is method returns
true) 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,
NSHTTPCookie is thread safe.