title: Codeigniter + Chrome error (ERR_RESPONSE_HEADERS_TOO_BIG). How to solve?
body: <p>My web application develop using CodeIgniter 1.7 is having error <strong>ERR_RESPONSE_HEADERS_TOO_BIG</strong> when open with Chrome browser only. I tried with all other browser the error will not happen.</p>
  
  <p>I can open the page normally after i refresh the error page. I try search from Google, it seems this bug happen to Chrome user since 2009 until now.</p>
  
  <p>This is my controller code:</p>
  
  <pre><code>function search_daily_sales_summary_view()
  {
      if(!($this-&gt;session-&gt;userdata('DAILY_SALES_SUMMARY'))){
          $this-&gt;session-&gt;set_flashdata('error', 'You dont have the permission to access that page.');
          redirect('login/home');
      }
  
      $this-&gt;load-&gt;model('currency_model');
      $this-&gt;load-&gt;model('bill_model');
  
      $data = array();
  
      $report = array();
  
      if($query = $this-&gt;currency_model-&gt;list_currency())
      {
          foreach ($query as $row) {
  
          $currencyid = $row-&gt;CURRENCY_ID;
          $currencycode = $row-&gt;CURRENCY_CODE;
  
          if($buyData = $this-&gt;bill_model-&gt;calculate_buy($currencyid))
          {
              $totalbuy = $buyData-&gt;total_from_amount;
              $totalbuy_rate = $buyData-&gt;rate;
  
              if($buyData-&gt;total_from_amount=='')
              {
                  $totalbuy = 0.00;
              }
  
              if($buyData-&gt;rate=='')
              {
                  $totalbuy_rate = 0.00;
              }
          }
          else
          {
              $totalbuy = 0.00;
              $totalbuy_rate = 0.00;
          }
  
          if($sellData = $this-&gt;bill_model-&gt;calculate_sell($currencyid))
          {
              $totalsell = $sellData-&gt;total_from_amount;
              $totalsell_rate = $sellData-&gt;rate;
  
              if($sellData-&gt;total_from_amount=='')
              {
                  $totalsell = 0.00;
              }
  
              if($sellData-&gt;rate=='')
              {
                  $totalsell_rate = 0.00;
              }
  
          }
          else
          {
              $totalsell = 0.00;
              $totalsell_rate = 0.00;
          }
  
          $report[] = array("currency"=&gt;$currencycode, "buy"=&gt;$totalbuy, "buyrate"=&gt;$totalbuy_rate, "sell"=&gt;$totalsell, "sellrate"=&gt;$totalsell_rate);
  
          }
  
          $data['records'] = $report;
  
      }
  
      $this-&gt;load-&gt;model('company_model');
      if($query = $this-&gt;company_model-&gt;list_company())
      {
          $data['company_list'] = $query;
      }
  
      $this-&gt;load-&gt;model('branch_model');
      if($this-&gt;input-&gt;post('company'))
      {
          $companyid = $this-&gt;input-&gt;post('company');
  
          if($query = $this-&gt;branch_model-&gt;view_company_branch($companyid))
          {
              $data['branch_list'] = $query;
          }
      }
      else
      {
          if($query = $this-&gt;branch_model-&gt;list_branch())
          {
              $data['branch_list'] = $query;
          }
      }
  
      $this-&gt;load-&gt;view('report/daily_sales_summary', $data);
  
  }
  </code></pre>
  
  <p>How to solve this?</p>