A string indicating the same-site policy for the cookie.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
Framework
- Foundation
Declaration
const NSHTTPCookie Property Key NSHTTPCookieSameSitePolicy;
A string indicating the same-site policy for the cookie.
SDKs
Framework
const NSHTTPCookie Property Key NSHTTPCookieSameSitePolicy;
NSHTTPCookie Comment
An NSString
object containing the comment for the cookie.
NSHTTPCookie Comment URL
An NSURL
object or NSString
object containing the comment URL for the cookie.
NSHTTPCookie Discard
An NSString
object stating whether the cookie should be discarded at the end of the session.
NSHTTPCookie Domain
An NSString
object containing the domain for the cookie.
NSHTTPCookie Expires
An NSDate
object or NSString
object specifying the expiration date for the cookie.
NSHTTPCookie Maximum Age
An NSString
object containing an integer value stating how long in seconds the cookie should be kept, at most.
NSHTTPCookie Name
An NSString
object containing the name of the cookie (required).
NSHTTPCookie Origin URL
An NSURL or NSString
object containing the URL that set this cookie.
NSHTTPCookie Path
An NSString
object containing the path for the cookie.
NSHTTPCookie Port
An NSString
object containing comma-separated integer values specifying the ports for the cookie.
NSHTTPCookie Secure
An NSString
object indicating that the cookie should be transmitted only over secure channels.
NSHTTPCookie Value
An NSString
object containing the value of the cookie.
NSHTTPCookie Version
An NSString
object that specifies the version of the cookie.