So I have some code. Specifically a login page. The login / logout process works fine.
The problem im haing is that $_SESSION will only store one variable, and thats the one that says if the session exist or not. Any session variables past that just dont seem to get stored correctly.
$_SESSION['db_is_logged_in'] = true;
// Ive Tried
$_SESSION['username'] = $username;
$_SESSION['info']['username'] = $username;
// With $username being
$username = $row['user_name'];
// And Yes, Im pretty sure I pulled the row info correctly
$idquery = "SELECT * FROM lll_users_information WHERE user_name = '$username' AND user_password = MD5('$password')";
$idresult = mysql_query($idquery) or die ('Can not get ID from Database (Query).<br /> ' . mysql_error());
$row = mysql_fetch_array($idresult) or die ('Can not get ID from Database (Fetch).<br /> ' . mysql_error());
And its interesting, when I tried to do
$_SESSION['info']['loggedin'] = true;
// Instead of
$_SESSION['db_is_logged_in'] = true;
It didnt work at all.. wierd.