Hey there nogdog,
I seem to be doing something incorrectly.
I did the following to get the new information to populate the session vars:
$query = "SELECT * FROM ".$prefix."admin WHERE username='$myusername' and password='$encrypted_mypassword'";
$result = mysql_query($query) or die('MySQL error: ' . mysql_error() . '<hr/>' . $query);
// Mysql_num_row is counting table row
$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row
if($count==1){
// Register username and password, then redirect to Admin index.
session_start();
$_SESSION['myusername'] = $myusername;
$_SESSION['mypassword'] = $mypassword;
$_SESSION['perms_configure'] = $row['perms_configure'];
$_SESSION['perms_add'] = $row['perms_add'];
$_SESSION['perms_edit'] = $row['perms_edit'];
$_SESSION['perms_delete'] = $row['perms_delete'];
$_SESSION['perms_super'] = $row['perms_super'];
//Where are we going after logging in?
header("location:index.php");
} else {
Which gets my login working correctly again. However, in the menu of the admin page, I made a couple links dependent on perms_configure or perms_super being '1'. The links aren't showing up. If I attempt to echo either, it's blank, so obviously, I'm not setting my session variables correctly.
Any suggestions are welcome.
thanks,
json