[eluser]vps4[/eluser]
[quote author="TheFuzzy0ne" date="1245114222"]So the problem is with Redux and not CodeIgniter?[/quote]
I think this code is not preciseness
Code:
if (count($custom_userdata) === 0)
{
$custom_userdata = '';
// I think here must do something. because the user_data field is NOT NULL
}
else
{
// Serialize the custom data array so we can store it
$custom_userdata = $this->_serialize($custom_userdata);
}
// Run the update query
$this->CI->db->where('session_id', $this->userdata['session_id']);
$this->CI->db->update($this->sess_table_name, array('last_activity' => $this->userdata['last_activity'], 'user_data' => $custom_userdata));