I have a couple of WKWebViews
in my app. I don't want the cookies/auth to be shared between them. I tried using separate instances of WKProcessPool
and WKWebViewConfiguration
to initialize the other webview. It doesn't work. What am I doing wrong?
Asked
Active
Viewed 1,023 times
4

esh
- 2,842
- 5
- 23
- 39
-
1did u find the solution? – ZAFAR007 Aug 15 '16 at 09:07
-
@ZAFAR007 I haven't tried after that. – esh Aug 05 '17 at 09:20
1 Answers
0
The WKWebsiteDataStore is per url based. So the datastore (which includes cookie store) is shared based on website/url loaded using WKWebView.
https://developer.apple.com/documentation/webkit/wkwebsitedatastore
A WKWebsiteDataStore object represents various types of data used by a chosen website. Data types include cookies, disk and memory caches, and persistent data such as WebSQL, IndexedDB databases, and local storage.

Debaprio B
- 503
- 7
- 9