Contents

httpShouldHandleCookies

A Boolean value that indicates whether the request should use the default cookie handling for the request.

Declaration

var httpShouldHandleCookies: Bool { get set }

Discussion

true if the request should use the default cookie handling for the request, false otherwise. The default is true.

If your app sets the Cookie header on an NSMutableURLRequest object, then this method has no effect, and the cookie data you set in the header overrides all cookies from the cookie store.

Special considerations

In OS X v10.2 with Safari 1.0 the value set by this method is not respected by the framework.

See Also

Related Documentation

Controlling request behavior