Alrgiht I've set up my login script which has set teh username and password session yet when I go to /cPanel/ it refuses to show me as logged in. Below is my code.
login file:
THen in my config file I have
At the bottom of the config file I have:
For debug purposes.
Any help with this?
When I visit the site it should have all my users information but it shows up blank.
I also have session_start() at the top of configuration file.
login file:
Code:
$_SESSION['username'] = $username;
$_SESSION['password'] = $Functions->Encrypt($password, $arrayUser->salt);
THen in my config file I have
Code:
$usrLogin_query = $db->dbQuery("SELECT * FROM `" . DB_PREFIX .
"users` WHERE `username` = '" . $_SESSION['username'] . "' AND `password` = '" .
$_SESSION['password'] . "';");
$usrLogin = $db->dbFetch($usrLogin_query);
At the bottom of the config file I have:
Code:
print_r($usrLogin);
die();
For debug purposes.
Any help with this?
When I visit the site it should have all my users information but it shows up blank.
I also have session_start() at the top of configuration file.
Last edited: