Okay I think I've got what is going on. The script uses sessions for the login.. so the logout script says:
if($logout):
session_destroy();
$params = session_get_cookie_params();
setcookie(session_name(), "", 0, $params["path"], $params["domain"]);
Header("Location: $PHP_SELF");
elseif.....
For some reason, the first time the page is reloaded with the Header() function, the session information is still lurking about somewhere so the logged_in variable is still set. Anyone know why this is happening? I've destroyed the session data and reset the cookie.. where's the information coming from?
/Mike