[eluser]M4rc0[/eluser]
Oh that was just a data example. The real data are in variables coming from the model such as $login.
(And in this case $id was always empty, thus the problem..)
After checking the documentation again, I realized that session_id is for the cookie, not the userdata.
So I removed thanks to your md5 tip that made me rethink about it.
And now it works! storing in db and logging out
So the real code in case someone else get this problem:
Code:
$sessionData = array(
'id' => $result,
'username' => $login,
'logged_in' => TRUE
);
$this->session->set_userdata($sessionData);
redirect('/home');
So session_id is unnecessary to have in userdata, is that correct?
Thanks
TheFuzzy0ne! Hope to hit with you in the forums more often later on