Here is what i have done:
Code: Select all
$auth = new authorize($dbh);
$auth->login("Luke", "pass");
$_SESSION['user_name'] = $auth->user_name;
$_SESSION['pass_word'] = $auth->pass_word;
$_SESSION['user_level'] = $auth->user_level;Moderator: General Moderators
Code: Select all
$auth = new authorize($dbh);
$auth->login("Luke", "pass");
$_SESSION['user_name'] = $auth->user_name;
$_SESSION['pass_word'] = $auth->pass_word;
$_SESSION['user_level'] = $auth->user_level;Code: Select all
$_SESSION['auth'] =& $auth;