Forum > macOS / Mac OS X

How are cookies share WebView, WKWebview, NSURLConnection

(1/1)

MISV:
I have a crawler.

To login I have/intend user to login through an embedded browser. (WebView/WKWebView depending on IS)

The actual crawl may be used using NSURLConnection or WebView/WKWebView

- https://www.xamarinhelp.com/cookie-sharing-webview-http-client/


--- Quote ---In iOS if you are using NSUrlSession, your cookies are shared automatically with the UIWebView/WKWebView and NSUrlSession.

To access the Cookie Container, you just need to call upon NSHttpCookieStorage.SharedStorage.Cookies.

--- End quote ---

So can anyone point me to some official documentation (somehow hard to find using Google) what combos of cookies are shared on MacOS/OSX?

OR how I would be go around copy cookies :)



trev:
Before OS X 10.11, cookies were shared. Since OS X 10.11 and macOS 10.12 they are no longer shared.

See: https://developer.apple.com/documentation/foundation/nshttpcookiestorage

Navigation

[0] Message Index

Go to full version