Removes cookies that were stored after a given date.
SDKs
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
- (void)removeCookiesSinceDate:(NSDate *)date;
Parameters
date
The date after which cookies should be removed.
Removes cookies that were stored after a given date.
SDKs
Framework
- (void)removeCookiesSinceDate:(NSDate *)date;
date
The date after which cookies should be removed.
- delete Cookie:
Deletes the specified cookie from the cookie storage.
- set Cookie:
Stores a specified cookie in the cookie storage if the cookie accept policy permits.
- set Cookies: for URL: main Document URL:
Adds an array of cookies to the cookie storage if the storage’s cookie acceptance policy permits.
- store Cookies: for Task:
Stores an array of cookies in the cookie storage, on behalf of the provided task, if the cookie accept policy permits.