Re: Re: Changes in Sessions (PHP Versions)

From: Date: Tue, 05 Feb 2002 10:32:41 +0000
Subject: Re: Re: Changes in Sessions (PHP Versions)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83570@lists.php.net to get a copy of this message
If you really need to use 4.0.6, try to use different session save handler and/or serializer. Try WDDX serializer at first, then try verious combinations. If you use other save handler/serializer, it may work. I suggest you to upgrade, though... -- Yasuo Ohgaki Travis Simpson wrote:
Sorry, I probably worded my question wrong. I am creating a 10 step (or so) form that is non-linear... The user enters all of their information and is able to go back and change information that they have filled in. So I have the form (POST) information set into session variables as soon as they click "Next" in the form. Well, with 4.1.1 there were no problems... It ALL worked perfectly. But unfortunately, in 4.0.6 it doesn't act the same. I just have a foreach loop go through all the POST variables and make them into SESSION variables, ------- Snippet ------- start_session(); foreach ($HTTP_POST_VARS as $key => $value) { $HTTP_SESSION_VARS["$key"] = $value; } ------- End Snippet ------- Easy enough... Now, I have all the 10 steps linked to on the side bar. <a href="step1.php?PHPSESSID=$PHPSESSID">Step 1</a> But for some weird reason, those links BLANK all the session variables. I tested this by doing a count() on the HTTP_SESSION_VARS array. And as soon as I click one of the Step links on the side, it clears all of them. I am not sure if I am doing this wrong, but it works fine (as I said) in 4.1.1. Another problem that I seem to be having... Is that 4.0.6 almost seems like it is maxing out with a certain number of SESSION variables. Once it has so many, it just starts over. I will just post the link here tomorrow, unfortunately I don't have the files on this computer. I hope this is a little more clear. Thanks, -Travis -----Original Message----- From: Yasuo Ohgaki [mailto:yasuo_ohgaki@yahoo.com] Sent: Monday, February 04, 2002 6:11 PM To: php-general@lists.php.net; Travis Simpson Subject: [PHP] Re: Changes in Sessions (PHP Versions) Travis Simpson wrote:
Hey, I am just wondering if there were any changes done to the session "engine" or settings between PHP 4.0.6 and 4.1.1. I have been getting nothing but grief from 4.0.6 and 4.1.1 seems to work fine.
What did work with 4.0.6 and what didn't with 4.1.1? If you are trying to use mm/msession save handler, it's broken somewhat.
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.general (#83570) next »