If I return a cookie with a response which is triggered by an ajax request, would the browser save the cookie?
yes, from: http://www.w3.org/TR/XMLHttpRequest/
If the user agent supports HTTP State Management it should persist, discard and send cookies (as received in the Set-Cookie response header, and sent in the Cookie header) as applicable. [COOKIES]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With