2013-07-16 4 views
1

내 프로젝트에 탱크 인증을 사용하고 있지만 작업하는 동안 예기치 않게 세션이 만료됩니다.예기치 않게 탱크 인증 로그 아웃

public function __construct() 
{ 
    parent:: __construct(); 


    $this->load->model("stulib"); 

    $this->load->library("Gen"); 
    $this->load->model('tank_auth/users','users'); 
    $this->load->library('tank_auth'); 
    $this->title='Angel'; 
    $this->user_id=$this->tank_auth->get_user_id(); 
    $this->school_id=$this->users->get_school(); 
    $this->school_name=$this->users->get_school_name($this->school_id); 
    $this->yesterday=$this->studentlib->yesterday(); 

    if(!$this->tank_auth->is_logged_in()) 
     die("No access rio!"); 

} 

그건 내 컨트롤러입니다. 컨트롤러의 생성자에서만 is_logged_in을 확인합니다.

편집 :

  • 내가
  • 내가
  • 내가 사용하는 아약스 요청을 내가 함께 비슷한 문제가 있었다
+0

어떤 브라우저에서이이다 : 당신은이 링크는 당신을 도울 수있는 자세한 설명은 여기

http://www.hiretheworld.com/blog/tech-blog/codeigniter-session-race-conditions

솔루션을 찾을 수 있습니다

? – bottleboot

+0

크롬. 나는 몇 분 동안 일할 수 있다고 생각하지만 시간이 너무 고르지 않아 언제든지 로그 아웃 할 수 있습니다. –

+0

세션을 db에 저장하고 있습니까? – bottleboot

답변

관련 문제