Do you have a question? Post it now! No Registration Necessary. Now with pictures!
July 1, 2008, 2:40 am
rate this thread
if i write :
$_SESSION['id'] = 4;
$id = 7;
print $_SESSION['id']; // result: 4
varible of $_SESSION['id'] is 4, but i write :
$_SESSION['a'] = 4;
$a = 5;
echo '<a href="b.php">b.php</a>';
print $_SESSION['a']; // result: 5
i use Apache 2.2.8, PHP 5.2.6 ( embed in AppServ 2.5.10)
Re: Session varibles
Check register_globals in your php.ini file. I suspect you will find it
is on. If so, turn it off - as it should be.
Remove the "x" from my email address
JDS Computer Training Corp.
- — Previous thread in » PHP Scripting Forum