In one.php, I define $_SESSION["user"]=$username
. And then redirect to two.php, echo $_SESSION["user"]
. And I get error:
Undefined array key “user”
Note: session_start();
is on both pages.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
In one.php, I define $_SESSION["user"]=$username
. And then redirect to two.php, echo $_SESSION["user"]
. And I get error:
Undefined array key “user”
Note: session_start();
is on both pages.