I am trying to create a user class that handles logins and all that jazz, when i try to log the user in it creates the session and all but it won't give a value to the session variables and i'm totally lost as to why. Here's the code:
function loginUser($username, $password)
{
global $gbl_UserID, $gbl_Password;
//code ommitted ...
//All is good
$gbl_UserID=$username;
$gbl_Password = $password;
//Create Session
session_start();
$this->Sessid = session_id();
session_register"gbl_UserID", "gbl_Passwords");
//Finish Up
$this->errno = ERR_SUCCESS;
return true;
}//end LogoutUser