title: exclude a page from a different page php
body: <p>I have a question about on how to exclude a php page from another in an IF statement php.
  this is my code:</p>
  
  <pre><code>   include 'category.php';
       if(isset($_SESSION['ageSearch'])){
        include 'age.php';
        //exclude category.php here; }
  </code></pre>
  
  <p>Any suggestion how to to that? Thanks!</p>