title: Appear logout button after login PHP
body: <p>Problem:
  I want "logout" make instant appear if I'm logged. Now it only appears when I do Refresh (F5). Is there any way to make it instant appear after login?</p>
  
  <pre><code>&lt;?php if ($gebruiker-&gt;checkLogout()) { ?&gt;
    &lt;li&gt;&lt;a href="logout.php"&gt;Loguit&lt;/a&gt;&lt;/li&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p><strong>function checkLogout()</strong></p>
  
  <pre><code>function checkLogout(){
         if (isset($_SESSION['login'])) {
           return true;
         }else {
           return false;
         }
       }
  </code></pre>