jQuery Form Plugin

jQuery Form Plugin

Hi,

  I've been trying to use this plugin  http://malsup.com/jquery/form/#download and I am not able to get the cookie from the response. When I try xhr.getAllResponseHeaders() there is no Set-Cookie parameter despite the fact that in Chrome it is shown (development console).

  I used the example on the plugin website and in the method they present I am trying to use the xhr parameter:

function showResponse(responseText, statusText, xhr, $form)  { 
    alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + 
        '\n\nThe output div should have already been updated with the responseText.');
var headers = xhr.getAllResponseHeaders();
alert(headers); 

  Did anyone encounter the same issue? I want to get the cookie so that I can set it manually. Thanks!


Best Regards,
Razvan