ajax get cookie,jquery - How to get a cookie from an AJAX response? - Stack Overflow
Similar to yebmouxing I could not thexhr.getResponseHeader('Set-Cookie');method to work. It would only return null even if I had set HTTPOnly to false on my server.I too wrote a simple js helper funct...