Instance Property


The cookie storage’s cookies.


@property(readonly, copy) NSArray<NSHTTPCookie *> *cookies;


If you want to sort the cookie storage’s cookies, you should use the sortedCookiesUsingDescriptors: method instead of sorting the result of this method.

See Also

Retrieving Cookies

- getCookiesForTask:completionHandler:

Fetches cookies relevant to the specified task and passes them to the completion handler.

- cookiesForURL:

Returns all the cookie storage’s cookies that are sent to a specified URL.

- sortedCookiesUsingDescriptors:

Returns all of the cookie storage’s cookies, sorted according to a given set of sort descriptors.

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