Have this code on my site to redirect users back to the homepage once logged out and destroys their session. Was working perfectly before when I was using my other hosting account to host the site, but now I've changed the host, it doesn't seem to work anymore ? It isn't actually doing anything. It does destroy session but doesn't redirect? The domain has remained the same and everything so I don't understand what is wrong here? Any ideas?
    <?
session_start();
if(!isset($_REQUEST['logmeout'])){
    echo "<strong><font color=green>Are you sure you want to logout?</font></strong><br />";
    echo "<a href=logout.php?logmeout>Yes</a> | <a href=javascript:history.back()>No</a>";
} 
else {
    session_destroy();
    if(!session_is_registered('first_name')){
        echo "<center><font color=red><strong>You have now been logged out.</strong></font></center><br />";
        echo "<center>You will be redirected in 3 second...</center><br />";
        /* Redirect browser */
        header('Refresh: 3;url=http://www.basecentre.co.uk/');
/* Make sure that code below does not get executed when we redirect. */
exit;
    }
}
?>
 
     
     
     
    