|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-19 08:35 UTC] rohitkaul_2000 at indiainfo dot com
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
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