Hi,
I am new to php. I am redirecting the page after checking the session global variable but the php is still opening the old page. the script is as follows :
<?PHP
session_start();
if ($_SESSION['Username'] != "")
{
header('Location: XXXXX.php',True);
Echo $_SESSION['Username'];
}
?>
I have inculed this script file in the top of the php page. Thanks a lot for help in advance


Its Displaying the $_SESSION['Username'] variable value but not redirecting with header..