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 745 times
3
![](../../users/profiles/1168720.webp)
esh
- 2,742
- 5
- 20
- 37
-
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.
![](../../users/profiles/2902231.webp)
Debaprio B
- 363
- 4
- 9