When using a web view and closing the app then opening it backup, do cookies persist? (For example to keep a logged in state)
Is this possible?
When using a web view and closing the app then opening it backup, do cookies persist? (For example to keep a logged in state)
Is this possible?
No, the cookies won't persist.
Here's a solution i hacked together today: https://gist.github.com/maciekish/6268142
Please note that the initial NSURLRequest you pass the UIWebView won't have the cookies unless you set hem.
Can't tell you why, but my UIWebView persists cookies and session by default, even when I force-close my app. So not really sure about the previous statements.
The cookies works just like mobile browser. But the only limitation is the cookie is NOT shared with browser, and different webviews has separated cookies storage.