3 Replies Latest reply on Jun 8, 2007 4:28 PM by RichMariner

    Show if user logged in - Not working -  Help

    RichMariner
      I've applied the behaviour to a page but it doesn't seem to work. If I understand the behaviour correctly it checks the session variable to see if the user is logged in and if they are one item is read to the page and if they aren't something else is. If I'm logged in or not it reads "else text: replace here. <br /> <br />This is my code. Can anyone see what I may be doing incorrectly? <br /> <br /><?php require_once('../Connections/easyWeb.php'); ?> <br /><?php<br />// Load the tNG classes<br />require_once('../includes/tng/tNG.inc.php');<br />// Make unified connection variable<br />$conn_easyWeb = new KT_connection($easyWeb, $database_easyWeb);<br />?> <br /> <br /><?php<br />//Show If User Is Logged In (region1)<br />$isLoggedIn = new tNG_UserLoggedIn($conn_);<br />//Grand Levels: Any<br />if ($isLoggedIn->Execute()) {<br />?> <br /> <p>Hello <?php echo $_SESSION['kt_login_user']; ?></p> <br /> <br /><?php <br />// else Show If User Is Logged In (region1)<br />} else {?> <br /> Else text: Replace this. <br /> <?php<br />}<br />//End Show If User Is Logged In (region1)<br />?>