Instance Property

portList

The cookie’s port list.

Declaration

var portList: [NSNumber]? { get }

Discussion

The list of ports for the cookie, returned as an array of NSNumber objects containing integers. If the cookie has no port list, the value of this property is nil and the cookie will be sent to any port. Otherwise, the cookie is only sent to ports specified in the port list.

See Also

Getting Cookie Host Properties

var domain: String

The domain of the cookie.

var path: String

The cookie’s path.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software