I have code like this (at the top of each page)
<?
session_start();
if (!isset($_SESSION['user']))
echo ('<META HTTP-EQUIV="Refresh" Content="0; URL=logon.php">');
?>
that redirects users from my index.php page to the logon.php page on my website. So when a user tries to access a page withought loging in, he/she gets sent to the logon page. However I noticed that the index.php page always shows for a brief moment (sometimes longer) before the user gets redirected to the logon page. It happens in both mozilla browsers and IE.
How can I fix this as I don't want the user to see whats on the page before the get redirected.
It happens with all the other pages that have the redirect script.
All help is appreciated! Thanks!!