title: Unsetting a PHP session with JQuery / AJAX
body: <p>Button on <code>index</code> page:</p>
  
  <pre><code>$('#killsession').click(function() {
      $.get('killsession.php');
      alert("OK");
  });
  </code></pre>
  
  <p><code>killsession.php</code>:</p>
  
  <pre><code>&lt;?php
  session_start():
  session_destroy();
  ?&gt;
  </code></pre>
  
  <p>After killing the session with this button, any session-esque related functions on <code>index</code> still work (session variables are still set/exist). For example, I have a counting session variable that is incremented when I click a certain button. This counting variable does not lose its spot in counting after killing the session.</p>
  
  <p>Is it possible to kill a session with a JQuery button?</p>