title: php allow access to pages to only logged in users
body: <p>I have 3 pages have html code similar to just example </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;div&gt;
  html code
  &lt;/div&gt;
  
  &lt;div&gt;
  html code
  &lt;/div&gt;
  
  &lt;div&gt;
  html code
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and have 2 php files login.php and logout.php , is it possible to strict access to the 3 pages only to login users </p>