 <p>You cannot. <strong>PHP</strong> is interpreted on the <strong>server side</strong> and <strong>jQuery</strong> is interpreted on the <strong>client side</strong>.</p> <p>You should either use an anchor <code>&lt;a href="session_destroy.php"&gt;</code> to go to another PHP page and destroy the session or use <a href="http://api.jquery.com/jQuery.get/" rel="nofollow"><strong>AJAX</strong></a> to call the destroy function without leaving the page.</p> <pre><code>jQuery('button').click( function () { jQuery.get("session_destroy.php"); } ); </code></pre>