01-10-2009, 10:58 AM
|
#3 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
Thanks for your reply! It helps me out well.
Quote:
Originally Posted by CoryMathews
You will have to store this class in a session variable to keep from reloading it every page as well.
|
I assume - with 'this class' - you mean the User class. Should I store only the boolean $m_bLoggedIn in a session, or the whole object?
Like:
PHP Code:
$_SESSION['user'] = $pUser->is_logged_in();
// or $_SESSION['user'] = $pUser;
|
|
|
|