added logout
This commit is contained in:
@@ -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);
|
||||
?>
|
||||
Reference in New Issue
Block a user