title: UIWebView is ignoring cookies?
body: <p>I am creating an app for the iPhone that fetches a specific page from a website, but to be able to view this site you need to log in with a username and a password.</p>
  
  <p>I've created this code:</p>
  
  <pre><code>NSString *urlAddress = @"http://www.wdg-hamburg.de";
  NSURL *url = [NSURL URLWithString:urlAddress];
  
  NSString *post = @"name=loginname&amp;pass=pass&amp;form_id=user_login&amp;op=Anmelden";
  NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding];
  
  NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];
  
  NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
  [request setHTTPMethod: @"POST"];
  [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
  [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
  [request setHTTPBody:postData];
  
  [vPlan loadRequest:request];
  </code></pre>
  
  <p>But I am not logged in at the UIWebView!</p>
  
  <p>I am logging <code>NSHTTPCookieStorage</code> to the console and it shows me the necessary cookie, but I dont get logged in.</p>
  
  <p>Does anybody knows how I can fix that?</p>
  
  <p>Kind regards,</p>
  
  <p>A. Miladinovic</p>