You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
586 B

  1. <?php
  2. header("Access-Control-Allow-Origin:*");
  3. //require_once '../../Common/Mysql.php';
  4. $_COOKIE['user_name'] = null; // 把username存在$_SESSION['user'] 里面
  5. $_COOKIE['user_id'] = null;
  6. //echo $_SESSION['user']; // 直接输出 username
  7. // $user_id= $_SESSION['id'];
  8. //session_destroy();
  9. // echo $_SESSION['user']; // 销毁sess
  10. $code =0;
  11. $info = 'success';
  12. $massge = '退出成功';
  13. $list = "";
  14. $json['code'] = $code;
  15. $json['info'] = $info;
  16. $json['massge'] = $massge;
  17. $json['list'] = $list;
  18. echo json_encode($json);
  19. exit;