Ask Your Question
0

change cookie path

asked 2015-09-04 09:53:24 -0600

anonymous user

Anonymous

askbot set the cookie path as ''/", So when I change the path in settings.py using SESSION_COOKIE_PATH="/index"and askbot can not work when i login. I want to develop 2 askbot in different port like this: http://www.example.com:8000 ----this is the math askbot http://www.example.com:8080 ----this is the tex askbot if their cookies can not separate in two different path , one login cookie will be covered by another, so how can I change that. thanks a lot.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-09-04 13:24:16 -0600

Evgeny gravatar image

Quick research shows that port number is not supported by the Cookies standard, so even if you attempt to implement this, there is no guarantee that browsers will honor the port restriction.

http://stackoverflow.com/questions/1612177/are-http-cookies-port-specific

Perhaps use a different domain for the second instance.

edit flag offensive delete link more
0

answered 2015-10-10 06:48:11 -0600

The path gives you the chance to specify a directory where the cookie is active The Domain and Path attributes define the scope of the cookie.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-09-04 09:53:24 -0600

Seen: 3,200 times

Last updated: Sep 04 '15

Related questions