php - Cart Become empty in codeigniter when I logged in through Google api -
every thing ok in site. adding products in cart ok. , when login through facebook, twitter , registered account cart records show . unfortunately when login google api login cart become empty.
////// here code when google come @ page after getting data.///// $this->user_model->insert('users', array('email'=>$users_info['email'], 'fname'=>$users_info['given_name'], 'lname'=>$users_info['family_name'], 'pic'=>$users_info['picture'] )); $id = $this->user_model->get_last_insert_id(); ////////setting session values////////////////////////// $sess_array = array( 'id' =>$id, 'email' => $users_info['email'], 'is_logged_in' =>true ); $this->session->set_userdata('logged_in', $sess_array); redirect(base_url('/')); exit();
here shopping cart url https://www.dealsmug.com/
Comments
Post a Comment