title: AFNetworking and Cookies
body: <p>I'm using AFNetworking as a network layer for my iPhone app which connects to a Rails server that uses Devise for authentication. If I sign in (with a POST call) providing username/password then after that any GET I perform is ok.</p>
  
  <p>If I close the app (not just background) then all my GET requests fail because I guess they're not authenticated.</p>
  
  <p>So I presume cookies are stored somewhere; is there a way to save them in <code>NSUserDefaults</code> or somewhere like that in order to avoid logging in all the time?</p>