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