title: Can AFNetworking 2 store the cookies
body: <p>I used AFHTTPClient and seems it stored cookies in the box. So when I was logged in. and then reload my app, the cookies were in application automatically. Maybe I confused about this. But seems it works in the way I described.</p>
  
  <p>Now I use this code:</p>
  
  <pre><code>AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
  
      [manager POST:path parameters:params success:^(AFHTTPRequestOperation *operation, id responseObject) {  
      } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
      }];
  </code></pre>
  
  <p>But when I restart my application I get message with wrong token when I try request some of my api method.</p>
  
  <p>So how can I store my cookies using the code above. I use this code for all my request for login, logout and other api services. If I don't restart it works good, but i rerun it seems cookies are went from me.</p>
  
  <p>How can I solve this?</p>
  
  <p>I found this answer <a href="https://stackoverflow.com/questions/21506038/how-can-i-use-cookies-using-afhttprequestoperationmanager-in-afnetworking-2-0">link</a> but I am not sure how to use it. </p>
  
  <p>I have checked cookies.</p>
  
  <p>If I don't rerun application the cookies are the same:</p>
  
  <pre><code>&lt;NSHTTPCookie version:0 name:"...." value:"....." expiresDate:(null) created:2014-02-27 19:24:29 +0000 (4.15222e+08) sessionOnly:TRUE domain:"...." path:"/" isSecure:FALSE&gt;
  </code></pre>
  
  <p>But if I rerun app the cookie are changed.</p>
  
  <p>Oh I understood, the app does not save cookies, seems I need to write this functional. Do you have good suggestion how to do it?</p>