title: Redirect to the same page after log out
body: <p><strong>index.php</strong></p>
  
  <pre><code>&lt;ul class="top"&gt;
         &lt;?php if(!isset($_SESSION['login_user'])) { ?&gt;
          &lt;li class="hover"&gt;&lt;a href="#" onClick="revealModal('modalPage')"&gt;Login&lt;/a&gt;
          &lt;/li&gt;
           &lt;?php } else {?&gt;
          &lt;li class="hover"&gt;&lt;a href="logout.php"&gt;Logout&lt;/a&gt;
             Welcome &lt;?php echo $_SESSION['login_user']; ?&gt;
          &lt;/li&gt;
           &lt;?php } ?&gt;
          &lt;li&gt;&lt;a href="registration.php" class="about"&gt;Registration&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p><strong>logout.php</strong></p>
  
  <pre><code>&lt;?php    
  session_start(); 
  session_destroy(); 
  header('Location:index.php');  
  exit;  
  ?&gt;  
  </code></pre>
  
  <p>I have my log out button in my every page, so i want that , if an user clicks in log out, he/she should redirect to the same page.. as i ve given the location page index here, but i want to remain in the same page.. any code to redirect to same page ?? Thank you in advance .. </p>