This should work, so I\'m really perplexed about why it\'s not working.
I\'m checking to see if a user is logged in using a $session class method at the top of each
Instead of if (!logged), try if (empty($logged)). That won't generate a notice in cases where the variable hasn't been set.
if (!logged)
if (empty($logged))