Session Cookies paths are wrong #39

Closed
despens opened this Issue Jan 18, 2011 · 2 comments

3 participants

@despens

Session cookies are assuming that the app runs on a domain's or subdomain's root.
The cookie path should be set according to

os.environ['REAL_SCRIPT_NAME']
@anandology anandology was assigned Apr 11, 2011
@aaronsw

Can you submit a pull request?

@despens

Sorry I do not know what a pull request is :)
And I am not sure if my idea to a solution is good.
The problem is that webpy in some places makes the assumption to be running alone on a dedicated domain. I think there should be a simple way to configure a base path that is respected by cookies and redirects.
It could even out running a project with different servers and different interfacing methods (lighttp, apache, cgi, wsgi, ... whatever I tried I had to fool around to make it work on sub-paths of a domain).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment