From: [EMAIL PROTECTED] Operating system: Linux 2.2.19 PHP version: 4.1.1 PHP Bug Type: Session related Bug description: Zero Length Session Files and Sessions not recognized
This is not so much of a bug report as a fix to a problem that I have seen many having. I was using PHP v4.0.1, and had very little problems with my sessions not being saved. I didnt have a problem with zero length files being created until I upgraded to PHP 4.0.4x. Upon upgrading to this new version, ALL of my scripts that contained sessions started creating 0 byte files, and would not save the session variables. I looked through all of these bug reports and noticed that others were having these problems as well. I also noticed that the developers became aware of this problem and implemented $_SESSION variables in 4.1.x versions. I am writing this to attempt to help others that were having this problem. Here is what I did to fix it: 1] I obtained a fresh copy of Apache_1.3.23 from www.apache.org 2] I obtained a new copy of PHP v4.1.1 from the main site here. www.php.net 3] I installed as per the instructions in the PHP documentation. (except I used ./configure --with-apxs --with-mysql --enable-track-vars --enable-trans-sid) 4] I replaced instances of session_register (varname) to $_SESSION = "value"; and added session_start() to the top of all my scripts. Voila! My 2 months of headaches were over! My scripts all work now. There are no more sessions with blank data, no more troubles passint the session ID to the next script. Thank you guys (developers) for finding the problem with this issue, and I hope this will help others that are having similar problems to resolve them. -- Edit bug report at http://bugs.php.net/?id=15395&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15395&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15395&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15395&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15395&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15395&r=support Expected behavior: http://bugs.php.net/fix.php?id=15395&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15395&r=notenoughinfo -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php