CodeIgniter Forums

Full Version: $this->session->set_userdata seems broken?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hello everyone,
I seem to be having an issue after upgrading to CI 2.1.0 and the set_userdata function. Previously running on CI 2.0.3(?) everything was working fine.

So I have this small block of code:
$details = $this->getClientDetails($validlogin['userid']);
                $sessiondata = array('username' => $details['firstname'], 'passwordhash'=>$validlogin['passwordhash'], 'logged_in' => '1', 'userid' => $details['userid'], 'status' => $details['status']);

Which functions properly up to the point where $this->session->set_userdata($sessiondata); gets called. below is what happens in the DB table, as you can see "user_data" is empty and seems to be skipping it completely?.


Any ideas?

Thank you