Bug #39634 [Com]: session variable and normal variable
| From: | info at foziasoft dot com | Date: | Thu, 14 Jul 2011 07:43:34 +0000 |
| Subject: | Bug #39634 [Com]: session variable and normal variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161878@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=39634&edit=1
ID: 39634
Comment by: info at foziasoft dot com
Reported by: erhanbaris at gmail dot com
Summary: session variable and normal variable
Status: Bogus
Type: Bug
Package: Variables related
Operating System: Win Xp SP1
PHP Version: 5.2.0
Block user comment: N
Private report: N
New Comment:
i m facing the same problem .you can check this with the example below
session_start();
$_SESSION['price']=100;
echo 'SESSION price value before-->'.$_SESSION['price']; //100
$price = 154;
echo 'SESSION price value After-->'.$_SESSION['price']; //154
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 10:09:34] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2006-11-26 16:44:05] erhanbaris at gmail dot com
yes. register_globals is enabled.
------------------------------------------------------------------------
[2006-11-26 16:38:53] iliaa@php.net
Is you register_globals enabled or not?
------------------------------------------------------------------------
[2006-11-26 10:47:22] erhanbaris at gmail dot com
Description:
------------
when i was use $_SESSION variable i find interesting thing.
look at this.
Reproduce code:
---------------
<?
session_start();
$_SESSION['id']=2006;
header('Location: second.php');
?>
second.php
<?
session_start();
$id=1985;
echo "\$_SESSION['id'] ->
".$_SESSION['id']."<br>\n";
echo "\$id -> ".$id."<br>\n";
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=39634&edit=1