My website project works well in firefox and google chrome, but has a URL problem in IE (IE10). When I make a login from IE, although the username and password are correct, the URL remains in the login, and not on the dashboard, as expected. Specify in the controller code for the redirect URL.
$user_name = $this->input->post('user_name');
$password = $this->input->post('pass_word');
$user_id = $this->login_model->check_login($user_name, md5($password));
if ($user_id != 0){
$this->session->set_userdata('admin_id', $user_id);
$next_url = $this->session->userdata('next_url');
$this->session->unset_userdata('next_url');
redirect('administrator/dashboard' , 'location');
}else{
$data['login'] = 'Invalid Username/Password!';
$data['class'] = 'error';
$this->session->set_flashdata($data);
redirect('administrator/login');
}
I am doing something wrong. How can i solve this? Any help or suggestions are welcome. Thanks in advance.
source
share