Hey all,
I have a lot of experience with ASP but am fairly new to (and am enjoying) PHP.
Can someone point out what the problem here is? I can't figure it for the life of me. This code is from a login page.
which produces the result
Can anyone explain why the uUsername session is fine, but the UserGroup session is "0" where all the variables associated with it are correct (40).
What am I missing here?
Steve Davis
ttf(a)HaHaHa.com.au
Me? I can't even spell ASP!
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.
I have a lot of experience with ASP but am fairly new to (and am enjoying) PHP.
Can someone point out what the problem here is? I can't figure it for the life of me. This code is from a login page.
Code:
//declare two session variables and assign them
$GLOBALS['Username'] = $loginUsername;
$GLOBALS['UserGroup'] = $loginStrGroup;
//register the session variables
session_register("Username");
session_register("UserGroup");
echo("global = ". $GLOBALS['UserGroup']. " :: group = " . $_SESSION['UserGroup'] . " :: name = " . $_SESSION['Username'] . " :: db = " . $row_users['userAdministratorLevel']." :: loginstrgroup = " . $loginStrGroup);
exit();
Code:
global = 40 :: group = 0 :: name = steve :: db = 40 :: loginstrgroup = 40
What am I missing here?
Steve Davis
ttf(a)HaHaHa.com.au
Me? I can't even spell ASP!
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.