ID:               15395
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to