First time here? Check out the FAQ!
0

change cookie path

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.

anonymous user
asked 2015-09-04 09:53:24 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

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.

jamegriffin's avatar
1
jamegriffin
answered 2015-10-10 06:48:11 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2015-09-04 13:24:16 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments