title: Using `header("Location: ...)`
body: <p>I am using a <code>location()</code> function call in my configuration file, but it keeps redirecting me to the page I am making to go to in the call to it,</p>
  
  <p>I am doing this:</p>
  
  <pre><code>if (!isset($_SESSION['user_login_name']) || !isset($_SESSION['user_logged_in']))
  {
      header("Location: /login/");
      exit();
  }
  </code></pre>
  
  <p>What is the best way to make it so the server knows that it on the login page and not redirect back to this infinitely? </p>