note 116234 added to reserved.variables.session

From: Date: Thu, 27 Nov 2014 05:01:18 +0000
Subject: note 116234 added to reserved.variables.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-201026@lists.php.net to get a copy of this message
My session variable dies when it switches on some other page and I can't get it's value on other pages. $_SESSION["username"]=filter_input(INPUT_POST,"username"); and on the top of every page, I have started the session by using this statement session_start(); Can anybody help me? I can't use 1 hidden field in every page just to store the value of 1 attribute. What if I need many variables then using hidden fields for all of them will be a bad approach. Thanks. ---- Server IP: 72.52.91.14 Probable Submitter: 39.63.52.163 ---- Manual Page -- http://php.net/manual/en/reserved.variables.session.php Edit -- https://master.php.net/note/edit/116234 Del: integrated -- https://master.php.net/note/delete/116234/integrated Del: useless -- https://master.php.net/note/delete/116234/useless Del: bad code -- https://master.php.net/note/delete/116234/bad+code Del: spam -- https://master.php.net/note/delete/116234/spam Del: non-english -- https://master.php.net/note/delete/116234/non-english Del: in docs -- https://master.php.net/note/delete/116234/in+docs Del: other reasons-- https://master.php.net/note/delete/116234 Reject -- https://master.php.net/note/reject/116234 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201026) next »