2017-10-01 9 views
0

私のウェブサイトにはいくつかの問題がありますが、まずログアウト機能があります。ログアウト機能がもう機能しない

/* FUNCTION: Logout set */ 
function logout() 
{ 
    $appid = $this->db->get_where('general_settings', array(
     'type' => 'fb_appid' 
    ))->row()->value; 
    $secret = $this->db->get_where('general_settings', array(
     'type' => 'fb_secret' 
    ))->row()->value; 
    $config = array(
     'appId' => $appid, 
     'secret' => $secret 
    ); 
    $this->load->library('Facebook', $config); 

    $this->facebook->destroySession(); 
    $this->session->sess_destroy(); 
    redirect(base_url() . 'index.php/home/logged_out', 'refresh'); 
} 

/* FUNCTION: Logout */ 
function logged_out() 
{ 
    $this->session->set_flashdata('alert', 'successful_signout'); 
    redirect(base_url() . 'index.php/home/', 'refresh'); 
} 

それは/ホーム/ログアウトをindex.phpにリダイレクトし、それが必要として/家をindex.phpにリダイレクトを与えるものではありません、それだけでログアウト

答えて

0

で空白のページがままだけ削除する必要がありましたログインのためのFacebookのAPIです。それはそれです..シンプルなソリューションは常に動作します>:|

関連する問題