好吧,这是一个奇怪的。我刚刚将CodeIgniter代码移到了我的客户端的虚拟主机serverlogic.com上。该代码一直在处理超过40个其他服务器,但现在突然间我正在进入墙壁。我正在使用数据库会话。Codeigniter 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'));
这工作:
$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()方法使用Cookie来跟踪数据,会不会是有一些服务器限制一旦cookie中存储了太多数据,就会触发这种情况?当调查我的服务器上的标题时,它将与此服务器相比设置更多Cookie。
我也从他们的服务器获取PHPSESSID cookie,但我不知道它来自哪里。我不是服务器管理员,因为他们使用Nginx我完全在这个黑暗中。
饼干只能存储这么多的信息,所以你可能达到极限 – Henesnarfel 2012-02-12 01:52:44
如果这将是cookie的限制,这不应该发生在所有的设置? – qwertzman 2012-02-13 16:21:40