HI All,
I'm developing a security system for a CMS but it appears that my redirect does not work.
I'm using sessions and I know that the session is being created since I did an echo on session_id().
<?php if($count==1)
{
$_SESSION['loggedin']=1;
print "logged in";
header('Location: edit.php');
print "no";
}
else {
echo "Wrong Username or Password";
}
?>
What's wrong, and how do I fix it to redirect after the user is authenticated?
Cheers,