note 116234 deleted from reserved.variables.session by sobak

From: Date: Sat, 19 Nov 2016 07:29:01 +0000
Subject: note 116234 deleted from reserved.variables.session by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207196@lists.php.net to get a copy of this message
Note Submitter: Aswad ---- 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.

« previous php.notes (#207196) next »