지금까지 가장 최근의 코드가 보이는 삭제 구멍 세션이 logout()
기능에있는 유일한 장소, Tank_auth.php 라인 같은 118 : 탱크의 https://github.com/ilkon/Tank-Auth/blob/master/application/libraries/Tank_auth.php#L118
예제 사용 Auth는 activate()
및 reset_email()
에 logout()
을 사용합니다. 해당 방법에 대한 코드를 확인하십시오. 또한 이런 식으로 탱크 인증 로그 아웃 기능을 변경할 수 있습니다 :
function logout($keep_session = false)
{
$this->delete_autologin();
// See http://codeigniter.com/forums/viewreply/662369/ as the reason for the next line
$this->ci->session->set_userdata(array('user_id' => '', 'username' => '', 'status' => ''));
if(!$keep_session)
$this->ci->session->sess_destroy();
}
... 그리고 사용이이 같은
: $ this-> tankauth-> 로그 아웃 (true)를;
Upvoted, 나는 웹 사이트를 보느라 피곤해서. –