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 haveCode:$_SESSION['username'] = $username; $_SESSION['password'] = $Functions->Encrypt($password, $arrayUser->salt);
At the bottom of the 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);
For debug purposes.Code:print_r($usrLogin); die();
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.


LinkBack URL
About LinkBacks



Reply With Quote
