ArcadEd
03-23-2006, 08:56 PM
I'm trying to wrap my head around using a session. I only have one variable that I need to follow the user after they logon, and I just can't seem to grasp it.
ON a successful login I have this. $uname is a variable defined earlier in the code.
session_start();
session_register("globname");
$globname = $uname;
Then on other pages I'm trying to pull the information from that variable using.
$NewVar = $_SESSION['globname'];
What am I missing? Thanks, I've been reading so much on global variables in general, I think I have all this new information in my head that is just getting all crisscrossed :).
I appreciate the help.
ON a successful login I have this. $uname is a variable defined earlier in the code.
session_start();
session_register("globname");
$globname = $uname;
Then on other pages I'm trying to pull the information from that variable using.
$NewVar = $_SESSION['globname'];
What am I missing? Thanks, I've been reading so much on global variables in general, I think I have all this new information in my head that is just getting all crisscrossed :).
I appreciate the help.