title: iOS web service login with cookie
body: <p>I've got a login system for a website, I'm starting a PHP session server side and creating a cookie in PHP which is used to revive the PHP session when I come back later on. </p>
  
  <p>I'm trying to reuse my code as the back end of an iOS application, but I'm having a hard time understanding just how it's working. </p>
  
  <p>I've set up the following cookie manager, as I understand this should send cookies with my requests. </p>
  
  <pre><code>NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
  [cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
  </code></pre>
  
  <p>I don't need to set any cookies from the iPhone, I just need to make sure that my requests to my php files let those scripts access the cookies.</p>
  
  <p>Am I missing anything ?</p>