ID: 16167 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Session related Operating System: Solaris 8 PHP Version: 4.1.2 New Comment:
Could you try 4.2.0RC1? Please visit http://qa.php.net/ for it. Previous Comments: ------------------------------------------------------------------------ [2002-03-20 02:26:30] [EMAIL PROTECTED] Sorry about the 2nd line in nn1.php Probably it should have been: session_register("newvar") = 123; Tried this and even this doesn't work. So nn1.php now becomes: ################################## nn1.php <? session_register("newvar") = 123; header("Location: nn2.php"); ?> nn2.php <? echo $_SESSION["newvar"]; ?> #################################### Please help required. \\Rohit ------------------------------------------------------------------------ [2002-03-19 08:35:15] [EMAIL PROTECTED] We have installed php4.1.2 on iplanet 6.0 Webserver on a Solaris 8 OS. I have searched high and low everywhere and somehow I have not being able to figure out why my session variables are not working properly even though I have installed the latest php 4.1.2. The following config options were used: ./configure' '-enable-sysvshm=yes' '--enable-sysvsem=yes' '--with-nsapi=/ecomm/iplanet/nes60/product' '--enable-libgcc' Our application is running fine when we have register_globals=on. But as soon as register_globals=off is set nothing seems to work. I couldn't even get these simple scripts working where we have to pass variable values between php pages. I have tried all approaches as listed below. ################################## nn1.php <? $session_register["newvar"] = 123; header("Location: nn2.php"); ?> nn2.php <? echo $_SESSION["newvar"]; ?> #################################### Have even tried this variant of nn1.php nn1.php and it still doesn't work. <? $_SESSION["newvar"] = 123; header("Location: nn2.php"); ?> ##################################### Urgent help is required because we might have to do a lot of code changes owing to introduction of register_globals=off (because of security guidelines). Many Thanks Rohit ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16167&edit=1
