|
<?php
/**
* 注销
*
*
*/
class Logout extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->library('session');
$this->session->sess_destroy();
//redirect('login');
}
function index(){
$this->session->sess_destroy();
$data['status'] = 1;
$data['info'] = '操作成功eewww';
echo json_encode($data);exit;
}
}
?>
|
|