I have a UIWebView that shows a login page. The user fill user and password and after the login the page save a NSHTTPCookie in the app sandbox.
With this line of code [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies] I can read all my cookies and using its in the code.
The problem is that when I reload the webView (e.g. when I create a new webView to show another page of the site) the web view doesn't read the cookie and show the login page again.
So the user can't stay logged in and this cause the user tap username and password for all pages that he want see.
How can I force the webview to read the stored cookies ?