I have a simple login on my site that works fine - however, one of the requirements of the site is to have the users nickname in the menu linked to their profile. This menu is in an include and although it changes depending on whether the user is logged in, i can't seem to print the variable:
Code: Select all
if (session_is_registered("loggedIn")) {
?> <h5 class="title">signed in</h5>
you are signed in as: <span class="bold"><a href="/profiles.php?searchBy=nickName&searchKeyword=<?php print $sessionNickname; ?>"><?php print $sessionNickname; ?></a></span>
<input type="button" class="formSubmit" value="log out" />
<?php
}Code: Select all
<?php
session_start();Tony.