SMF Development > Fixed or Bogus Bugs
[4879] SMF 2.0 Final intermittant login and session failure (and workaround)
live627:
--- Quote from: ElusiveEagle on August 24, 2011, 12:03:27 AM ---
--- Quote from: live627 on August 23, 2011, 10:59:50 PM ---What exactly is your PHP version?
--- End quote ---
Old server: 5.3.5
New server: 5.3.6
--- End quote ---
The question was for the OP, but I suspect it's the same as yours.
rawlogic:
--- Quote from: live627 on August 23, 2011, 10:59:50 PM ---What exactly is your PHP version?
--- End quote ---
I recently installed SMF 2.0 on a server with PHP 5.3.5, and it failed immediately due to session.hash_bits_per_character being set to 6.
In my testing, I recreated the issue on the following PHP versions and platforms simply by changing session.hash_bits_per_character:
5.2.13 (Windows 7)
5.2.17 (Debian)
5.3.5 (Windows 7 and Debian)
5.3.7 (Windows 7)
Since my web host provider setup the Linux environments for me, I don't know if the default session.hash_bits_per_character setting changed with a particular PHP version, or if they tweaked the configuration. I'm guessing they tweaked it. The bug is likely to be an issue with any PHP version 5.0 and later, since if the user has their session.hash_bits_per_character set to 6, it causes a problem.
So .... why do you ask? :)
ElusiveEagle:
I just wanted to report back that so far things are quite peachy. :)
I didn't mess with my PHP configuration but rather opted to "patch" the SMF Load.php file as you explained above. I tested it on a mirrored site first, and each time my session variable included a "-" or "%2C" (comma) I was still able to authenticate successfully.
I then implemented the fix on my live site, changed the SMF cookie name, and logged all users out. So far so good. :)
Gothkid:
I'm still not having any luck. I'm running on Windows Server 2008 R2 with php version 5.3.6. I've changed the session.hash_bits_per_character to both 5 and 4 and replaced 4 lines in Load.php with what you said to replace. I still get the session is invalid error. Is there something I'm doing wrong?
Illori:
have you restarted your webserver?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version