diff --git a/logout.php b/logout.php index 3faad83..de92423 100644 --- a/logout.php +++ b/logout.php @@ -23,5 +23,10 @@ } session_start(); - unset_($_SESSION["email"]); + $data = json_decode(file_get_contents("php://input"),true); + if($data["accept"] == true){ + session_destroy(); + echo json_encode(true); + } + else echo json_encode(false); ?> \ No newline at end of file