A singleton object (shared instance) that manages storage of cookies.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
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.
In macOS 10.9 and later and iOS 7 and later,
NSHTTPCookie is thread safe.