Hey guys,
My team is working with web based authentication in an iOS app and we're currently using a SFSafariViewController to get the job done.
After a user successfully authenticates through the web page, the server issues a non-persistent cookie, and the problem is that the non-persistent cookie is persisting. Once the app goes to the background the cookie is thrown away, but, as long as our app is in the foreground, it sticks around.
This is causing problems with our logout workflow, given that the SFSafariViewControllers are storing unwanted state that automatically logs users in after we've logged them out.
Is this a bug or expected behavior from SFSafariViewController?