Hi. I'm gonna create a new index page where everyone is logged, is redirected to the main index (Dolphin index), and the guest stay there until they do the login.
require_once( 'dolphin/inc/header.inc.php' );
check_logged();
if(!isLogged())
{
header("location: dolphin/index.php");
}
else{
print "Hi guest";
}
But everytime i go to this page, i'm redirected to dolphin/index.php, even if I'm not logged. What's wrong? Thanks.