title: Autologin using ASIHTTPRequest in a web based form login inside a UIWebView
body: <p>I'm trying to accomplish an autologin using ASIHTTPRequest library in a web based form login inside a UIWebView. I want to make it persistant, so the following requests made by the user in the UIWebView use the credentials supplied from the networking library.</p>
  
  <p>I tried this:</p>
  
  <pre><code>- (void)viewDidLoad {
  
  [super viewDidLoad];
  NSString *fullURL = @"http://myweb/loginform";
  
  NSURL *url = [NSURL URLWithString:fullURL];
  NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
  ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
  [request setUseKeychainPersistence:YES];
  [request setUseSessionPersistence:YES];
  [request setUseCookiePersistence:YES];
  [request setPostValue:@"myuser" forKey:@"__ac_name"];
  [request setPostValue:@"mypass" forKey:@"__ac_password"];
  [request setDelegate:self];
  [request startAsynchronous];
  
  }
  
  - (void)requestFinished:(ASIHTTPRequest *)request {
  NSError *error = [request error];
  if (!error) {
      [webView loadData:[request responseData] MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:[request url]]; }
  }
  </code></pre>
  
  <p>But when I try to navigate via UIWebView, the credentials are not persisted inside it and got unauthenticated requests.</p>
  
  <p>There is a way to share the credentials between ASIHTTPRequest world and the UIWebView one?</p>
  
  <p>Thanks in advance.</p>