this code displays the "welcome username" and "you are not loged in" stuff<br /><br /> <?php<br />// Require the library<br /> require ("includes/main.inc.php");<br /> include("languages/english/index.php");<br />// -------------<br /><br />// ------------------------------<br />// Define any necessary variables<br /> $Cat = get_input("Cat","get");<br />// -----------------<br /><br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate("U_Groups, U_TimeOffset, U_FrontPage"); <br /> $Username = $user['U_Username'];<br /> <br /> $html = new html;<br /> if (!$user['U_Username']) {<br /> //echo ("You are not Loged in. [<a href='http://spokejunkies.com/ubbthreads/login.php?Cat='>Login</a>]");<br /> $html -> not_right ($ubbt_lang['notloggedin']. $ubbt_lang['WEL_PRIV_NO'],$Cat);<br /> }<br /> print ("Welcome ");<br /> print ($Username);<br /> print (". [<a href = 'http://spokejunkies.com/ubbthreads/logout.php?Cat='>Logout</a>]");<br /><br /> ?><br /><br />i am currently inserting this code into an html page via include and it works great BUT when a user logs out it still shows them as loged in... any ideas?