Platforms to show: All Mac Windows Linux Cross-Platform
NSHTTPCookieStorageMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
These cookies are shared among all applications and are kept in sync cross-process.
Note: Changes made to the cookie accept policy affect all currently running applications using the cookie storage.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 2 properties
- property Handle as Integer
- property cookieAcceptPolicy as Integer
- 9 methods
- method Constructor Private
- method cookies as NSHTTPCookieMBS()
- method cookiesForURL(URL as string) as NSHTTPCookieMBS()
- method cookiesToArray(cookies() as NSHTTPCookieMBS) as Integer
- method deleteCookie(cookie as NSHTTPCookieMBS)
- method removeCookiesSinceDate(d as date)
- method removeCookiesSinceDate(d as dateTime)
- method setCookie(cookie as NSHTTPCookieMBS)
- method setCookies(cookies() as NSHTTPCookieMBS, URL as string, mainDocumentURL as string)
- 3 shared methods
- shared method NSHTTPCookieManagerAcceptPolicyChangedNotification as string
- shared method NSHTTPCookieManagerCookiesChangedNotification as string
- shared method sharedHTTPCookieStorage as NSHTTPCookieStorageMBS
- 3 constants
One of the cookie accept policy constants.
Constant | Value | Description |
---|---|---|
NSHTTPCookieAcceptPolicyAlways | 0 |
Accept all cookies. This is the default cookie accept policy. |
NSHTTPCookieAcceptPolicyNever | 1 |
Reject all cookies. |
NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain | 2 |
Accept cookies only from the main document domain. |
This class has no sub classes.
Some properties using for this class:
- NSURLSessionConfigurationMBS.HTTPCookieStorage as NSHTTPCookieStorageMBS
Blog Entries
The items on this page are in the following plugins: MBS MacControls Plugin.
NSHTTPCookieMBS - NSImageCellMBS