Alex Rivera | Logout

Is an Ajax request guaranteed to send cookies?

Asked 2010-07-02T05:17:44.250
22

I've just tested this and it seems that Ajax requests send the cookie header from the browser to the server each time. Is this a guaranteed behaviour which I can rely on, or is it something which may or may not happen?

Edit
Report

1 Answer

22

Ajax is just a "way" to generate HTTP request. It is still a browser doing it so it will follow browser "rules". Can never be 100% sure but I would say yes.

answered 2010-07-02T05:21:40.483

Your Answer