I understood that cookies are remembered for future requests.
But I couldn't get it to work.
My setup:
this.postHtml(options, function() { // post for doing auth, I'm sending form data here
// judging from chrome dev tools, the response includes auth cookies with user id and
// user pw
this.getHtml(options, function() { // for this request I have to be logged in
// but unless I'm setting the user id and pw cookies myself (this.addCookie)
// they are not there, meaning I am not logged in to the server
});
});
Hi!
I understood that cookies are remembered for future requests. But I couldn't get it to work.
My setup:
Is this a bug or am I doing something wrong?