session_start(); if($_SESSION["name"] && $_SESSION["id"] && $_SESSION["logged"] === true){ header("location:index.php"); } ?>