I am trying to get my session login script working and I had the obvious header issues so I added this to the top of my page and it now allows login on Chrome browsers but not IE, the page only displays what is in my included header file (no css) its like it is just ignoring everything else.
<?php
session_start();
if(isset($_SESSION['SESS_USERNAME']))
{
$username = $_SESSION["SESS_USERNAME"];
echo '<div id="session">You are logged in as '.$username.'</div>';
}
else
{
header("Location: index.php");
}
?>
Any reasons why??
May be you’ve turned off cookies in IE. Check it! If yes, turn it on and then try again.
It’ll work