Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSHTTPCookieMBS class.
NSHTTPCookieMBS.comment as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The receiver's comment string or "" if the cookie has no comment. This string is suitable for presentation to the user, explaining the contents and purpose of this cookie.
(Read only property)
NSHTTPCookieMBS.commentURL as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The receiver's comment URL or "" if the cookie has none. This value specifies a URL which is suitable for presentation to the user as a link for further information about this cookie.
(Read only property)
NSHTTPCookieMBS.domain as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
If the domain does not start with a dot, then the cookie is only sent to the exact host specified by the domain. If the domain does start with a dot, then the cookie is sent to other hosts in that domain as well, subject to certain restrictions. See RFC 2965 for more detail.
(Read only property)
NSHTTPCookieMBS.expiresDate as date
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The receiver's expiration date, or nil if there is no specific expiration date such as in the case of "session-only" cookies. The expiration date is the date when the cookie should be deleted.
(Read only property)
NSHTTPCookieMBS.expiresDateTime as dateTime
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read only property)
NSHTTPCookieMBS.Handle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read and Write property)
NSHTTPCookieMBS.isHTTPOnly as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns true if this cookie should only be sent via HTTP headers, false otherwise.
Cookies may be marked as HTTP only by a server (or by a javascript). Cookies marked as such must only be sent via HTTP Headers in HTTP requests for URL's that match both the path and domain of the respective cookies.
Important: Cookies specified as HTTP only should not be delivered to any javascript applications to prevent cross-site scripting vulnerabilities.
(Read only property)
NSHTTPCookieMBS.isSecure as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
True if this cookie should only be sent over secure channels, otherwise false.
(Read only property)
NSHTTPCookieMBS.isSessionOnly as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
True if the receiver should be discarded at the end of the session (regardless of expiration date), otherwise false.
(Read only property)
NSHTTPCookieMBS.name as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read only property)
NSHTTPCookieMBS.path as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The cookie will be sent with requests for this path in the cookie's domain, and all paths that have this prefix. A path of "/" means the cookie will be sent for all URLs in the domain.
(Read only property)
NSHTTPCookieMBS.properties as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns dictionary representation of the receiver's cookie properties.
This dictionary can be used with Constructor or cookieWithProperties to create an equivalent NSHTTPCookie object.
(Read only property)
NSHTTPCookieMBS.value as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read only property)
NSHTTPCookieMBS.version as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Networking | MBS MacControls Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns the receiver's version. Version 0 maps to "old-style" Netscape cookies. Version 1 maps to RFC 2965 cookies.
(Read only property)
The items on this page are in the following plugins: MBS MacControls Plugin.