session/class interaction
Posted: Mon Jun 05, 2006 1:27 pm
If I have a class set up and I want my session's array values to be identical to a certain class's properties, what is the best way to set those?
Here is what i have done:
There are quite a few more properties than that, but you get the picture.
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;