# NSHTTPCookieStorage class documentation

rfm@gnu.org
Generated at 2025-12-02 21:52:00 +0000
2006 Software Foundation, Inc.
Software documentation for the NSHTTPCookieStorage class
Foundation/NSHTTPCookieStorage.h
The NSHTTPCookieStorage class provides a shared instance which handles the shared cookie store.
sharedHTTPCookieStorage
Returns the shared instance.
cookieAcceptPolicy
Returns the current cookie accept policy.
cookies
Returns an array of all managed cookies.
cookiesForURL:
URL
Returns an array of all known cookies to send to URL.
deleteCookie:
cookie
Deletes cookie from the shared store.
setCookie:
cookie
Sets a cookie in the store, replacing any existing cookie with the same name, domain and path.
setCookieAcceptPolicy:
cookieAcceptPolicy
Sets the current cookie accept policy.
setCookies:
cookies
forURL:
URL
mainDocumentURL:
mainDocumentURL
Adds to the shared store following the policy for NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain