Bug #16167 Updated: Variables not passed between pages
| From: | yohgaki@php.net | Date: | Tue, 02 Apr 2002 14:28:00 +0000 |
| Subject: | Bug #16167 Updated: Variables not passed between pages | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3828@lists.php.net to get a copy of this message | ||
ID: 16167
Updated by: yohgaki@php.net
Reported By: rohitkaul_2000@indiainfo.com
-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] rohitkaul_2000@indiainfo.com
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] rohitkaul_2000@indiainfo.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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16167&edit=1