note 112657 added to reserved.variables.session

From: Date: Tue, 09 Jul 2013 19:58:50 +0000
Subject: note 112657 added to reserved.variables.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-195551@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.199 Probable Submitter: 78.149.163.118 ---- Manual Page -- http://php.net/manual/en/reserved.variables.session.php Edit -- https://master.php.net/note/edit/112657 Del: integrated -- https://master.php.net/note/delete/112657/integrated Del: useless -- https://master.php.net/note/delete/112657/useless Del: bad code -- https://master.php.net/note/delete/112657/bad+code Del: spam -- https://master.php.net/note/delete/112657/spam Del: non-english -- https://master.php.net/note/delete/112657/non-english Del: in docs -- https://master.php.net/note/delete/112657/in+docs Del: other reasons-- https://master.php.net/note/delete/112657 Reject -- https://master.php.net/note/reject/112657 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195551) next »