isset($_SESSION['username']) && ($_SESSION['username'] == $myusername)
Tim
2010-08-28 08:16:49
isset($_SESSION['username']) && ($_SESSION['username'] == $myusername)
I see an error at
isset()
You can either use
isset($_SESSION['username'])
or
if($_SESSION['username'] == $myusername)
You might wanna try to get a value for $_SESSION['username']
outside if statement.
Something like this
$_SESSION['username'] = $myusername;
if(isset($_SESSION['username'])){
header("location:main_login.php");
}