Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function closeSessionOnClick(){
- $.ajax({
- type: "POST",
- url: '../../SERVER_MANAGEMENT/session_management.php',
- data: {functionName: 'delete_session'},
- success: function () {
- }
- }
- });
- switch($_POST['functionName']) {
- case 'delete_session':
- delete_session();
- break;
- }
- function delete_session(){
- session_start();
- if (isset($_SESSION['name'])) {
- session_destroy();
- }
- }
Add Comment
Please, Sign In to add comment