Bug #15395 Updated: Zero Length Session Files and Sessions not recognized
| From: | sander@php.net | Date: | Wed, 06 Feb 2002 12:37:44 +0000 |
| Subject: | Bug #15395 Updated: Zero Length Session Files and Sessions not recognized | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79353@lists.php.net to get a copy of this message | ||
ID: 15395
Updated by: sander@php.net
Reported By: nalkat@yahoo.com
-Status: Open
+Status: Closed
Bug Type: Session related
Operating System: Linux 2.2.19
PHP Version: 4.1.1
New Comment:
Ok. Closing.
Previous Comments:
------------------------------------------------------------------------
[2002-02-05 19:29:56] nalkat@yahoo.com
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 this bug report at http://bugs.php.net/?id=15395&edit=1