I would like to have a menu bar that changes depending if the user is logged on or is logged off.
The problem is that I cannot declare the
include($_SERVER['DOCUMENT_ROOT']."/classes/access_user/access_user_class.php");
because I will start getting the php cannot redeclare class error messages.
What would you recommend?
I tried the session
if (!empty($_SESSION['logged_in'])) {
but if I tried logging in and seeing if it worked and it would always give me the value as if though I was not logged on.
Any suggestions would be appreciated.