PHP Session Bug/Issue Update
Submitted by charlie.collins on Tue, 02/04/2003 - 10:18
Tagged:
Some users of this site have session issues. Specifically when being logged in, then posting a comment, they are logged out. This traces back to a PHP session bug/issue that has been giving me headaches for quite some time now.
Here is the PHP bug. The TotSP server does log occassional errors as such [04-Feb-2003 08:53:42] PHP Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is cor
rect (/tmp/php_sess) in Unknown on line 0
. (And the directory does exist, perms are correct, php.ini is correct, code maintains the SID, yadda yadda yadda.)
I have never personally experienced this bug on any machine, anywhere at anytime. However, some users say they can regularly recreate it. PLEASE let me know if you ever have this problem. If you are logged in to this site, then post a comment and are then mysteriously logged out, then please let me know (via a comment to this post, if you can stand being logged out again).
I have made several changes to try to address this bug. The latests posts in the above bug report state to give the web server user a home directory, the same as the session data directory and I have done that.
I also wanted to solicit feedback from anyone whom might have any insight, and let everyone know that I am aware of the issue and I am working on it. (Its been very puzzling, its a real issue as the PHP developers seem to be trying to deal with it also, but neither they nor I can recreate it, even though users do post that it occurs, see the linked bug report, therfore its been, uh, lets say a "challenge" to try to fix.)







Comments
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update
Re: PHP Session Bug/Issue Update