In my example, I am sending login details to a server-side script via AJAX that in turn sets a session/cookie variable.
My question is will the cookie/session be set after I get a response, or do 开发者_JAVA百科I actually have to visit the server-side script the regular way to set them?
Thanks!
Yes. Your cookie/session will be set. You can try it by send another request.
精彩评论