Instance Property

path

The cookie’s path.

Declaration

var path: String { get }

Discussion

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.

See Also

Getting Cookie Host Properties

var domain: String

The domain of the cookie.

var portList: [NSNumber]?

The cookie’s port list.

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