CodeIgniter Forums
CI session library BUG? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI session library BUG? (/showthread.php?tid=19663)

Pages: 1 2


CI session library BUG? - El Forum - 06-15-2009

[eluser]vps4[/eluser]
[quote author="Dam1an" date="1245113841"]Are you using redux auth 1.4 or 2? As they both have differant schemas for the sessions table
1.4 doesn't have a field for userdata which is wierd :S[/quote]

thanks, i use redux auth 2.0 beta.


CI session library BUG? - El Forum - 06-16-2009

[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));