How to fix URL redirect problems in Internet Explorer

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){
    //set session and redirect to dashboard
    $this->session->set_userdata('admin_id', $user_id);
    $next_url = $this->session->userdata('next_url');
    $this->session->unset_userdata('next_url');
    //redirect($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.

+4
source share
3 answers

. , . ( : 11: 30 , : 5:30) ", . cookie . IE, , . , cookie , , , ". : http://ellislab.com/forums/viewthread/135722/

+4

location refresh

redirect('administrator/dashboard' , 'refresh');
+1

redirect('administrator/dashboard' , 'location');

redirect('administrator/dashboard' , 'refresh');

location

+1

All Articles