It actually sets cookies (for example in vimeo video with passwords it works), if you just remove the `{'Cookie': 'PHPSESSID=' + sessid + ';'}`part it should still work.