yeah.. the Solution is simple..
Do the following thig..
<?php
Your Db Enrty/checking code will be here
And after completing the authentication procedure..
echo("<head><title>Please wait.... we are logging you out!</title>
<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2; URL=index.php\">
</head>
<body topmargin=\"150\" marginheight=\"150\" bgcolor=\"#000000\">
thank you for logging in<br>
If your browser is unable to redirect within 10 seconds, please <a href=\"next_file_name.html\"><font color=\"#FFFF00\">click here</font></a>
</body>
");
?>
Hope it will work..
Cheers Tabish