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にリダイレクトを与えるものではありません、それだけでログアウト