I want to delete all sessions of my webpage using PHP when the user clicks on a specific button... Below is the related code:
<a href="#" class="log" name="log">delete sessions</a>
<?php
//when button is clicked then run command: session_destroy()
?>
If it isn't possible then is there a way I can destroy PHP sessions using javascript action listeners?