env-js icon indicating copy to clipboard operation
env-js copied to clipboard

cookie management

Open robb1e opened this issue 15 years ago • 1 comments

Hi,

Not sure if this is the right place, but I can't seem to subscribe to Google Groups at the moment, so here I am.

I've got some code that I've run in a browser that captures a cookie and sends that as a header on subsequent requests, but it doesn't seem to be getting set when using envjs and Rhino. To be honest, I'm not sure if this is something from envjs or rhino which isn't working as I'd expect.

I managed to get the cookie set using this, but it'd be nice if the container handled that. Any ideas?

Thanks

Robbie

jQuery.ajaxSetup({ 'beforeSend': function(xhr) { xhr.setRequestHeader("Cookie", sessionToken); } });

robb1e avatar Apr 19 '10 20:04 robb1e

Note the ongoing discussion at... http://groups.google.com/group/envjs/browse_thread/thread/be1b872978209f48/f5951cb673bfa3db?lnk=gst&q=cookie#f5951cb673bfa3db

Chris reports that the most stable cookie functionality is in the latest trunk version from thatcher github.

Chris has kindly taken one of my test cases which relies on implicit cookie setting and may be able to prove it working this weekend.

cefn avatar May 07 '10 12:05 cefn