title: Show different page if first time visit
body: <p>I found a snippet of code that redirects if it's the first visit, but when I tried to use it, it just stayed at that code. I don't really understand too much about the cookies and how it works, so maybe you can help! Here's the PHP code: </p>
  
  <pre><code>    &lt;?php
  
      session_start();
  
      if (isset($_SESSION['FirstVisit'])) {
  
      $_SESSION['FirstVisit'] = 1;
  
      header("Location: http://example.com/index.php");
  
      // Don't forget to add http colon slash slash www dot before!
  
      }
  
  ?&gt;
  </code></pre>
  
  <p>So how could I fix it so if it's your first visit to the site it brings you to a certain page, and if not, the default?</p>