Welcome Guest, Not a member yet? Register   Sign In
Error while using session
#1

Can anyone tell me the solution for this error.

Thanks in advance Smile

Attached Files Thumbnail(s)
   
Reply
#2

(05-24-2016, 10:47 PM)shihasck Wrote: Can anyone tell me the solution for this error.

Thanks in advance Smile

i think you need to include session library
Reply
#3

(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.

Thanks in advance Smile

i think you need to include session library

I have already include that in the autoload.php
Reply
#4

(05-24-2016, 10:47 PM)shihasck Wrote: Can anyone tell me the solution for this error.

Thanks in advance Smile

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB