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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anonymous user
asked 9 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
jamegriffin's avatar
1
jamegriffin
answered 9 years ago
link

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 9 years ago
link

Comments

see more comments