Instance Method

setCookie:completionHandler:

Sets a cookie.

Declaration

- (void)setCookie:(NSHTTPCookie *)cookie completionHandler:(void (^)(void))completionHandler;

Parameters

cookie

The cookie to set.

completionHandler

A block to invoke once the cookie has been set.

See Also

Cookie Management

- getAllCookies:

Fetches all stored cookies.

- deleteCookie:completionHandler:

Deletes the specified cookie.