this code displays the "welcome username" and "you are not loged in" stuff
<?php
// Require the library
require ("includes/main.inc.php");
include("languages/english/index.php");
// -------------
// ------------------------------
// Define any necessary variables
$Cat = get_input("Cat","get");
// -----------------
// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Groups, U_TimeOffset, U_FrontPage");
$Username = $user['U_Username'];
$html = new html;
if (!$user['U_Username']) {
//echo ("You are not Loged in. [<a href='http://spokejunkies.com/ubbthreads/login.php?Cat='>Login</a>]");
$html -> not_right ($ubbt_lang['notloggedin']. $ubbt_lang['WEL_PRIV_NO'],$Cat);
}
print ("Welcome ");
print ($Username);
print (". [<a href = 'http://spokejunkies.com/ubbthreads/logout.php?Cat='>Logout</a>]");
?>
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?