function performLogout() { $JSONerror->state = 0; $JSONerror->message = 'Success'; if (!sessionUnInit()) { $JSONerror->state = 1; $JSONerror->message = 'An unexpected Error accured'; print_r(json_encode($JSONerror)); } }
<?php include_once 'include/session.php'; sessionUnInit();