Welcome Guest, Not a member yet? Register   Sign In
Unable to store data into the session in 3.1.8
#1

Hi people

I am unable to store the data in the session. I have already started the session in autoloaders but the session is not storing the data which I am unable to find in the next page/controller.

Please help me 
there is my code

/
Code:
/= from here i am storing the data into the session (controller name: login)
public function demo(){
                $array = array('email'=>'[email protected]');
                $this->session->set_userdata('email');
                redirect(base_url().'user/demo');

        }



Code:
//= here i am printing it. (controller name: user)
public function demo(){
        echo $this->session->userdata('email');
    }
Reply


Messages In This Thread
Unable to store data into the session in 3.1.8 - by sumanta.sharma007 - 05-27-2018, 03:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB