note 112657 deleted from reserved.variables.session by mazzanet

From: 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.

« previous php.notes (#195567) next »