2016-11-03 3 views
0

인증 기능이 있으며 (아래 코드가 추가되었습니다) 올바른 자격 증명을 제출하면 리디렉션 기능이 제대로 작동하지 않습니다. Firefox에 "연결이 재설정되었습니다."가 표시되고 Chrome에 "데이터가 수신되지 않음"이 표시됩니다.CodeIgniter - 리디렉션 기능이 제대로 작동하지 않습니다.

도와주세요.

"redirect (base_url()."index.php/masteradmin/Dashboard ");" 하나는 리디렉션되지 않는 것입니다. \\`에서 : HTTPS`\\ '또는 :

public function AuthenticateUser() { 
    $this->load->helper('url'); 
    $email = $this->input->post("email"); 
    $password = $this->input->post("password"); 
    if ($email && $password) { 
     $status = $this->mastermodal->ValidateSuperAdmin(); 
     if (is_array($status)) { 
      $this->index($status['Message']); 
     } else if ($status) { 
      if ($this->session->userdata('table') == 'master') { 
       redirect(base_url() . "index.php/masteradmin/Dashboard"); 
      } 
     } else { 
      $loginerrormsg = "invalid email or password"; 
      $this->index($loginerrormsg); 
     } 
    } else { 
     redirect(base_url() . "index.php/masteradmin"); 
    } 
} 
+1

당신이 –

+0

모달의 코드를 추가 할 수 코드를 흐르는 시도 할 수는 HTTP'로 설정에서 설정 한 기본 URL입니다 처음? 변경하지 않았다면, 새로운 요청으로 보지 않고 리다이렉트 루프를 끝내게됩니다. – gabe3886

+1

이것을'redirect (base_url(). "index.php/masteradmin");'로 변경하십시오. 'redirect ('masteradmin/Dashboard'); ' –

답변

0

당신은

redirect(base_url().'index.php/masteradmin',refresh) 
관련 문제