Note that there are some explanatory texts on larger screens.

plurals
  1. POCode Igniter redirect() not working in IE9
    primarykey
    data
    text
    <p>I'm trying to login to my site with Facebook and it works in all browsers except for IE9!</p> <p>My function gets all the way to 'redirect('home');' but then stops and stays on the current page. So all the session data gets set and the user is logged into Facebook, but they stay on the login page without being redirected.</p> <p>Here is my code:</p> <pre><code>public function fb_login() { if($this-&gt;fb_connect-&gt;user_id){ $this-&gt;session-&gt;unset_userdata('logged'); $this-&gt;session-&gt;unset_userdata('user_data'); // Check if the user had previously logged in using facebook connect $fb_user = $this-&gt;fb_connect-&gt;user; $user_details = $this-&gt;Model-&gt;check_fb_user($fb_user); // This will then return their user details if($user_details['status'] == 0) redirect('account'); $user_data['raw_details'] = $user_details; $user_data['fb_id'] = $this-&gt;fb_connect-&gt;user_id; $user_data['join_date'] = date( 'dS F, Y', strtotime($user_details['date_added']) ); $user_data['location'] = $user_details['user_location']; $user_data['name'] = $user_details['user_fname'] . ' ' . $user_details['user_lname']; $user_data['display_name'] = $user_details['user_display_name']; $user_data['fb_dp'] = 'https://graph.facebook.com/'.$user_details['fb_id'].'/picture'; $this-&gt;session-&gt;set_userdata('user_data',$user_data); if($this-&gt;session-&gt;userdata('referer')){ $referer = $this-&gt;session-&gt;userdata('referer'); $this-&gt;session-&gt;unset_userdata('referer'); redirect($referer); }else{ redirect('home'); } }else{ error_log('148'); redirect('account/login'); } } </code></pre> <p>Thanks, Stuart</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload