suas
suas copied to clipboard
Cookie Path needs to be set?
Looking at the network traffic, I see that the "Path" is not set on each cookie. In Chrome and Firefox 3 (and maybe other browsers too), this causes the browser to set Path to the current path requested. This is a problem if I wanted to be able to access cookies on a different page.
I was able to "fix" the problem by specifying Path=/ on each cookie. To do this, I modified session.set_cookie(self, key) to replace:
'Set-Cookie', self.cookies[key].output()[12:]
with this:
'Set-Cookie', self.cookies[key].output()[12:] + '; Path=/'