title: Or statement isn't functioning properly
body: <p>I want to be redirected if I don't have an account1 or if I don't have an account2. The problem is, even if I have account1 it is redirecting me:</p>
  
  <pre><code>if(($_SESSION['account'] != "account1") || ($_SESSION['account'] != "account2")){
      header("location:/home");
      exit();
  }
  </code></pre>
  
  <p>It works properly and doesn't redirect me when I have account1 when I don't include the OR:</p>
  
  <pre><code>if($_SESSION['account'] != "account1"){
      header("location:/home");
      exit();
  }
  </code></pre>
  
  <p>but I also need it to not redirect if they, by chance, have account2.</p>
  
  <p>What am I doing wrong?</p>