Re: Bug #15395: Zero Length Session Files and Sessions not recognized

From: Date: Wed, 06 Feb 2002 01:43:18 +0000
Subject: Re: Bug #15395: Zero Length Session Files and Sessions not recognized
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79303@lists.php.net to get a copy of this message
Could you try latest snapshot
http://snaps.php.net/
AND
my patch see if it fixes?

--
Yasuo Ohgaki


nalkat@yahoo.com wrote:
> From:             nalkat@yahoo.com
> 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.
> 



-- 
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)


Thread (3 messages)

« previous php.dev (#79303) next »