Ask Your Question

change cookie path

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

anonymous user


askbot set the cookie path as ''/", So when I change the path in using SESSION_COOKIE_PATH="/index"and askbot can not work when i login. I want to develop 2 askbot in different port like this: ----this is the math askbot ----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

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

Evgeny's avatar

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.

Perhaps use a different domain for the second instance.

edit flag offensive delete link more

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


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

Seen: 3,322 times

Last updated: Sep 04 '15

Related questions