I know this has been answered in several related forms, but I have been twisting my brain for days trying to figure this out to no avail. I have tried every single solution I could find that seemed to be even remotely related.
I am using a WKWebView
and loading the url of a website. On that website, a user will log in. In order to keep the user logged in, we need to maintain the session with a cookie. I have got this working perfectly on Android (using webview and cookies).
I need to figure the following out for iOS:
1) How to find cookie (if it already exists) and send it with the URLRequest
.
2) How to make sure cookies are maintained between the app being opened and closed.