Long story short I created a different session variable other than username. I delete that stored session and create the username session and it all worked just fine. I hope this is not creating a new thread inside of this thread, but in my other thread I asked about how when I use the log out how once I log back in, I'm returned to the last page I was one instead of the account.php page. Like you said before I unchecked the "return to restricted page (when applicable)" but it is still happening. Here is the first 20 lines of my code.
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$Authenticate = new WA_MySQLi_Auth($localhost);
$Authenticate->Action = "authenticate";
$Authenticate->Name = "user";
$Authenticate->Table = "users";
$Authenticate->addFilter("UserName", "=", "s", "".((isset($_POST["userName"]))?$_POST["userName"]:"") ."");
$Authenticate->addFilter("Password", "=", "s", "".((isset($_POST["password"]))?$_POST["password"]:"") ."");
$Authenticate->storeResult("UserName", "UserName");
$Authenticate->AutoReturn = false;
$SuccessRedirect = "account.php";
$FailedRedirect = "fail.php";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;
$Authenticate->execute();
}
?>