note 112657 deleted from reserved.variables.session by mazzanet
| From: | mazzanet@php.net | Date: | Thu, 11 Jul 2013 04:49:04 +0000 |
| Subject: | note 112657 deleted from reserved.variables.session by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195567@lists.php.net to get a copy of this message | ||
Note Submitter: Brian Moreau
----
Iâm not sure if this is just a way script is executed or a bug but I notice if I set a variable
in page script thusâ¦
<?PHP
$tw = $_SESSION['tw'];
?>
And later in the page code have an include thusâ¦
<?PHP
include_once("new.php");
?>
and that new.php code overwrites the same variable thus..
$tw = $row[tw];
After page refresh its not setting $tw to the session value but using the value from the include
script.