これは奇妙なものです。 CodeIgniterコードをクライアントのWebホストserverlogic.comに移動しました。このコードは他の40以上のサーバーで動作していますが、突然私は壁にぶつかります。私はDBセッションを使用しています。Codeigniter set_flashdataはこの1台のサーバーにページを表示できません。
これは動作しません:
$this->session->set_flashdata('contact_message', validation_errors());
$this->session->set_flashdata('first_name', $this->input->post('first_name'));
$this->session->set_flashdata('last_name', $this->input->post('last_name'));
$this->session->set_flashdata('email', $this->input->post('email'));
$this->session->set_flashdata('zip', $this->input->post('zip'));
$this->session->set_flashdata('phone', $this->input->post('phone'));
$this->session->set_flashdata('comments', $this->input->post('comments'));
これは動作します:set_flashdataとして
$this->session->set_flashdata('contact_message', validation_errors());
$this->session->set_flashdata('first_name', $this->input->post('first_name'));
$this->session->set_flashdata('last_name', $this->input->post('last_name'));
$this->session->set_flashdata('email', $this->input->post('email'));
/*$this->session->set_flashdata('zip', $this->input->post('zip'));
$this->session->set_flashdata('phone', $this->input->post('phone'));
$this->session->set_flashdata('comments', $this->input->post('comments'));*/
()メソッドは、データを追跡するためにクッキーを使用して、それはいくつかのサーバーは限界があることが考えられあまりにも多くのデータがクッキーに格納されるとヒットします。私のサーバー上のヘッダーを調べるとき、このサーバーと比較してより多くのCookieを設定しています。
また、サーバーからPHPSESSID Cookieも取得していますが、どこから来たのかわかりません。私はサーバー管理者ではなく、彼らはNginxを使用しているので、私は完全にこの1つの暗闇の中にいる。
クッキーはあまりにも多くの情報しか保存できないので、限界に達する可能性があります – Henesnarfel
クッキーの上限になる場合、これはすべての設定で起こらないはずですか? – qwertzman