This question already has an answer here:
- Codeigniter modifying session data 3 answers
I use the session in codeigniter, it works well but I can't change the value. I use this function :
$this->session->set_userdata('check', 0);
I must change the value of 'check' to 0.
Why can't ?
My question is, why i can't change the value session ? And I set the value like this for the first time :
$sess_array = array(
'userid' => $row->userid,
'pseudo' => $row->pseudo,
'check' => $row->check
);
$this->session->set_userdata('logged_in', $sess_array);
</div>