View Single Post
Old 01-10-2009, 10:58 AM   #3 (permalink)
maZtah
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

Thanks for your reply! It helps me out well.

Quote:
Originally Posted by CoryMathews View Post
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
maZtah is offline  
Reply With Quote