Error while using session - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Error while using session (/showthread.php?tid=65283) |
Error while using session - shihasck - 05-24-2016 Can anyone tell me the solution for this error. Thanks in advance RE: Error while using session - ramdrupal7 - 05-24-2016 (05-24-2016, 10:47 PM)shihasck Wrote: Can anyone tell me the solution for this error. i think you need to include session library RE: Error while using session - shihasck - 05-25-2016 (05-24-2016, 11:39 PM)ramdrupal7 Wrote:(05-24-2016, 10:47 PM)shihasck Wrote: Can anyone tell me the solution for this error. I have already include that in the autoload.php RE: Error while using session - behrooz1x - 05-25-2016 (05-24-2016, 10:47 PM)shihasck Wrote: Can anyone tell me the solution for this error. Hello my friend about your second error, your header must be send before your data, this error tells you send data first. other errors, about your session, first read again user_guide CI about session, and Session start must be before others such as headers for example: public function index(){ // session start and header set $this->load->library('session'); //others can make output of view $this->load->view('',$data); } good luck |