Skip to content

Clear previous cookies before of adding the new ones #18

@asam139

Description

@asam139

it would be perfect that the webview cleans the previous cookies stored in the storage if not I need to create each time the webview to clean them.

NSSet *websiteDataTypes = [NSSet setWithArray:@[WKWebsiteDataTypeCookies]];
NSDate *dateFrom = [NSDate dateWithTimeIntervalSince1970:0];
[_wkWebView.configuration.websiteDataStore removeDataOfTypes:websiteDataTypes
                                                                                         modifiedSince:dateFrom
                                                                                 completionHandler:^{}];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions