I changed it from:

$HTTP_SESSION_VARS["$key"] = $value;


$key = $value;

And now it works fine.

At first, when I wrote the $key = $value... It made no sense... I was
just doing it because I didn't know what else to try. And it actually
works ;) I figured it would set the variable $key to the value of
$value. But it didn't. It created a new variable. Naming it the value of
$key. And giving that new variable the value of $value.

Does this confuse anybody else?? ;)

Thanks for all your help,

-----Original Message-----
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 05, 2002 2:33 AM
To: Travis Simpson
Subject: Re: [PHP] Re: Changes in Sessions (PHP Versions)

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
> I tested this by doing a count() on the HTTP_SESSION_VARS array. And
> 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
> files on this computer.
> I hope this is a little more clear.
> Thanks,
> -Travis
> -----Original Message-----
> From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 04, 2002 6:11 PM
> To: [EMAIL PROTECTED]; Travis Simpson
> Subject: [PHP] Re: Changes in Sessions (PHP Versions)
> Travis Simpson wrote:
>>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

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to