Button on index page:
$('#killsession').click(function() {
$.get('killsession.php');
alert("OK");
});
killsession.php:
<?php
session_start():
session_destroy();
?>
After killing the session with this button, any session-esque related functions on index 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.
Is it possible to kill a session with a JQuery button?