Login using session error: net::ERR_TOO_MANY_REDIRECTS
<p>I'm trying to use the session system to create a login however, I keep getting a redirect error. Once I enter the correct username (Admin) and password (murphy1) the page refreshes and I get this error in the console:</p>

<blockquote>
  <p>net::ERR_TOO_MANY_REDIRECTS</p>
</blockquote>

<p>Now if I simply refresh the page it logs in or if I reenter the username and password a second time a post the results again it logs in. Could someone please refer me to where I'm going wrong here, I would really appriate it?</p>

<pre><code>&lt;?php
ob_clean();
session_start();

if (isset($_SESSION['loggedin']) || $_SESSION['loggedin'] == true){
    header("Location: SeniorManagersSiteTour.php");
}

if ($_SERVER['REQUEST_METHOD'] == 'POST'){
    $Username = $_POST['username'];
    $Password = $_POST['password'];

    if ($Username == 'Admin'){
        if($Password == 'murphy1'){
            $_SESSION["loggedin"] = true;
            $Error = "00";
        }
        else{
            $Error = "01";
        }
    }
    else{
        $Error = "02";
    }
}
?&gt;
</code></pre>