node-js-libs / node.io

MIT License
1.8k stars 140 forks source link

Default Cookie Behavior broken? #144

Closed zweigraf closed 9 years ago

zweigraf commented 11 years ago

Hi!

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
    });
});

Is this a bug or am I doing something wrong?