title: Getting Cookies in Sencha touch 2.0 using Ajax request
body: <p>I'm developing a web mobile project using Sencha touch 2.0</p>
  
  <p>I made an ajax request as follows:</p>
  
  <pre><code>Ext.Ajax.request({
    url: myUrl,
    params: {
      format: 'xml',
      callback: 'success'
    },
    method :'POST',
    xmlData :MyXMLData
    proxy:{
      type: 'ajax',
      reader:{
        type: 'xml',
        rootProperty:'ns2:user'
      }
    },
  </code></pre>
  
  <p>On the server-side I have the following headers set:</p>
  
  <pre><code>header("Access-Control-Allow-Origin: *");
  </code></pre>
  
  <p>The server returns an XML response and cookies</p>
  
  <p>By using Chrome's debugging tools I can see that various Set-Cookie headers are returned</p>
  
  <p>The question is how can I get these Cookies in order to be set with other requests??</p>
  
  <p>Note:</p>
  
  <p>I tried response.getAllResponseHeaders() but this doesn't work with Set-Cookies.</p>