I've noticed that. In additional, in my tests, it seems like session cookies are NOT shared between Safari and SFSafariViewController, but only the presisted cookies (those with a future expiration date). Like you, I wonder if this is by design or a bug. Or perhaps something I'm missing. I've tested this with iOS 9.3.2 on an iPhone 6 as well as 9.2 on the simulator. I've noticed this while testing using SAML (where our IdP uses session cookies) and then confirmed it with a simple test page that sets both session and persisted cookies. When switching between Safari and the App with a SFSafariViewController, only the persisted cookie is shared.So it seems there's separate session cookies between Safari and SFSafariViewController. I can't find any references confirming this. The standard Apple docs just says cookies and other website data are shared while some others report cookies are not consistently shared. Neither distinguish which type
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: