title: I want to logout using button in php
body: <pre><code>&lt;?php
   session_start();
  ?&gt;
  &lt;form&gt;
     &lt;input type="button" id="logout" value="logout" name="logout"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I created the session during the time of login now i wanted to destroy it by using button. I don't want to go to <code>&lt;a href=""&gt;logout&lt;/a&gt;</code>, please tell me what to insert on my PHP code.</p>