From:             [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version:      4.1.2
PHP Bug Type:     Session related
Bug description:  Variables not passed between pages

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 bug report at http://bugs.php.net/?id=16167&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16167&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16167&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16167&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16167&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16167&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16167&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16167&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16167&r=submittedtwice

Reply via email to