Global Variable

NSHTTPCookieDomain

An NSString object containing the domain for the cookie.

Declaration

const NSHTTPCookiePropertyKey NSHTTPCookieDomain;

Discussion

If this cookie attribute is missing, the domain is inferred from the value for NSHTTPCookieOriginURL. If you do not specify a value for NSHTTPCookieOriginURL, you must specify a value for NSHTTPCookieDomain.

See Also

Cookie Property Keys

NSHTTPCookieComment

An NSString object containing the comment for the cookie.

NSHTTPCookieCommentURL

An NSURL object or NSString object containing the comment URL for the cookie.

NSHTTPCookieDiscard

An NSString object stating whether the cookie should be discarded at the end of the session.

NSHTTPCookieExpires

An NSDate object or NSString object specifying the expiration date for the cookie.

NSHTTPCookieMaximumAge

An NSString object containing an integer value stating how long in seconds the cookie should be kept, at most.

NSHTTPCookieName

An NSString object containing the name of the cookie (required).

NSHTTPCookieOriginURL

An NSURL or NSString object containing the URL that set this cookie.

NSHTTPCookiePath

An NSString object containing the path for the cookie.

NSHTTPCookiePort

An NSString object containing comma-separated integer values specifying the ports for the cookie.

NSHTTPCookieSecure

An NSString object indicating that the cookie should be transmitted only over secure channels.

NSHTTPCookieValue

An NSString object containing the value of the cookie.

NSHTTPCookieVersion

An NSString object that specifies the version of the cookie.