| View previous topic :: View next topic |
| Author |
Message |
Technocrat Developer

Joined: Jan 06, 2005 Posts: 10995 Location: Hell
Status: Offline
|
Posted: Wed Jan 30, 2008 1:40 pm Post subject: [FIX] Correct Cookie Settings (Invalid Session Error) |
|
|
Please Read and adjust your forum cookie settings accordingly.
PLEASE READ THESE STEPS VERY CAREFULLY
If you are still getting the invalid session errors after these changes clear you cookies. Â If your still getting the error check your settings again. Â Everyone that I have helped with this issue that has claimed that they did it correctly but still gets the errors had their cookie settings wrong. Â Wouldn't you know fixing them made the errors go away.
Please note that the use of an IP address will NOT work. You must have a proper DNS entry with a TLD.
NOTE: The cookie name is now important
If you get url or cookie validation errors overrule them as the config they were built on no longer work. Â So keep clicking yes.
This will fix the invalid session error.
You may also have to clear you cookies.
If your cookie name is longer than the field allows for
| Quote:
|
Open
modules/Forums/templates/subSilver/admin/board_config/board_cookies.tpl
Find:
maxlength="16"
Replace with:
maxlength="255"
|
Secure cookie should be off
Your site is on the root of a domain
Example URL: http://www.mysite.com / Â http://mysite.com
Cookie domain: .mysite.com  (Note the period before the name)
Cookie name: mysite (The cookie name MUST match exactly your domain without the suffix)
Cookie path: /
Your site is on subdomain
Example URL: http://nuke.mysite.com
Cookie domain: nuke.mysite.com
Cookie name: mysite (The cookie name MUST match exactly your domain without the suffix)
Cookie path: /
Your site is in a sub folder
Example URL: http://www.mysite.com/nuke/
Domain Name: www.mysite.com
Script Path: /nuke/modules/Forums/
Cookie domain: .mysite.com (Note the period before the name)
Cookie name: mysite (The cookie name MUST match exactly your domain without the suffix)
Cookie path: /nuke (Note there is no / at the end) |
phpBB-Evolution / phpBB-Evolution Blog
Technocrat's blog / Ways to thank me
Last edited by Technocrat on Mon Jul 21, 2008 11:29 am; edited 7 times in total |
|
| Back to top |
|
 |
clyde4210 Copyrights Violator

Joined: Mar 13, 2007 Posts: 626
Status: Offline
|
Posted: Wed Jan 30, 2008 2:47 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
is this for all evo users or just ones with invalid cookies ( url cookie errors)? also does this effect coppermine gallery and should that be adjusted aswell?
nevermind i reread what you said about errors. one thing though, i believe this should apply to coppermine aswell for those that have it installed. |
|
|
| Back to top |
|
 |
Technocrat Developer

Joined: Jan 06, 2005 Posts: 10995 Location: Hell
Status: Offline
|
|
| Back to top |
|
 |
clyde4210 Copyrights Violator

Joined: Mar 13, 2007 Posts: 626
Status: Offline
|
Posted: Wed Jan 30, 2008 4:17 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
| ok now, i get errors stating that isn't the cookie domain the the server is reporting. |
|
|
| Back to top |
|
 |
bjarbj78 Evolution Super User

Joined: Apr 30, 2005 Posts: 358 Location: The Universe
Status: Offline
|
Posted: Wed Jan 30, 2008 4:43 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
@Technocrat
Hi thanks for all fixes
But one thing crossing my mind. The Cookie domain have to be exactly the same as Domain Name in "General Board Settings"
I have (www.mysite.com) as Domain Name and I have to use (www.mysite.com) as Cookie domain or i got this error if i set (.mysite.com) as Cookie domain
" The Cookie Domain you entered (.mysite.com) does not match the URL that the server is reporting (www.mysite.com)"
Cheers |
|
|
| Back to top |
|
 |
Technocrat Developer

Joined: Jan 06, 2005 Posts: 10995 Location: Hell
Status: Offline
|
|
| Back to top |
|
 |
sincity Evolution Power User

Joined: Jun 19, 2006 Posts: 101
Status: Offline
|
Posted: Wed Jan 30, 2008 4:45 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
| yes lol |
|
|
| Back to top |
|
 |
bjarbj78 Evolution Super User

Joined: Apr 30, 2005 Posts: 358 Location: The Universe
Status: Offline
|
Posted: Wed Jan 30, 2008 4:50 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
Okay.. bu I got error in Arcade Admin ------> Settings check
phpBB Pref - Script Path:
"/modules/Forums/" OK
phpBB Pref - Server Name:
"www.mysite.com" OK
phpBB Pref - Cookie Domain:
".mysite.com" Failed Empty value or www.mysite.com expected.
phpBB Pref - Cookie Path:
"/" OK |
|
|
| Back to top |
|
 |
Technocrat Developer

Joined: Jan 06, 2005 Posts: 10995 Location: Hell
Status: Offline
|
|
| Back to top |
|
 |
clyde4210 Copyrights Violator

Joined: Mar 13, 2007 Posts: 626
Status: Offline
|
Posted: Wed Jan 30, 2008 4:53 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
| Technocrat wrote (View Post):
|
|
Just keep saying yes
|
here's my problem with just saying "yes".
remember alot of users had a hard time with arcade because cookies did not match up correctly. now that being said coppermine also has issues if cookie is different, i had to install coppermine 7 or more times before i relized in the Gallery/admin.php, neeeded changed from coppermine to my mysite.
can we expect fixes for those? should they become effected by this change. |
|
|
| Back to top |
|
 |
Technocrat Developer

Joined: Jan 06, 2005 Posts: 10995 Location: Hell
Status: Offline
|
Posted: Wed Jan 30, 2008 4:59 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
| These settings should be more correct. So it should be better. However if your concerned about it and your cookies have not been a problem in the past, then really the most important thing is the cookie name as that has to be changed to the domain now or it will give you the invalid session error. |
phpBB-Evolution / phpBB-Evolution Blog
Technocrat's blog / Ways to thank me |
|
| Back to top |
|
 |
clyde4210 Copyrights Violator

Joined: Mar 13, 2007 Posts: 626
Status: Offline
|
Posted: Wed Jan 30, 2008 5:08 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
only reason i am asking is due to the fact in your security fixes it states "that the cookie settings must be correct", which points here.
i've never had a cookie issue besides coppermine admin till i changed the cookie in its gallery/admin.php. is this a must have for those security fixes to function correctly?
i know these are alot of questions but, i'd rather be secure and not start ignoring things that should mostly likely be dealt with before i and others have alot more question or problems down the road.
thanks,
passes the mic to tec for his thoughts. |
|
|
| Back to top |
|
 |
Technocrat Developer

Joined: Jan 06, 2005 Posts: 10995 Location: Hell
Status: Offline
|
|
| Back to top |
|
 |
clyde4210 Copyrights Violator

Joined: Mar 13, 2007 Posts: 626
Status: Offline
|
Posted: Wed Jan 30, 2008 5:21 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
Ok thank you for clearing that up for me and others who will follow this convo.
Thank you,
Clyde |
Last edited by clyde4210 on Wed Jan 30, 2008 7:50 pm; edited 1 time in total |
|
| Back to top |
|
 |
bjarbj78 Evolution Super User

Joined: Apr 30, 2005 Posts: 358 Location: The Universe
Status: Offline
|
Posted: Wed Jan 30, 2008 5:22 pm Post subject: Re: [FIX] Correct Cookie Settings |
|
|
Hi Technocrat
Everything seems to work OK here
Thanks again for all new fixes.
Cheers |
|
|
| Back to top |
|
 |
|