好吧,這是一個奇怪的。我剛剛將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