Welcome Guest, Not a member yet? Register   Sign In
How to store "custom session data" in sessions table?
#1

[eluser]inktri[/eluser]
So I'm using the session class and want to store in the sessions table more than just the IP, session id, etc. How can I store the custom session data such as username, and logged_in in the sessions table? I tried altering the schema so each sessions record has a username field and a logged_in field; however the values of those fields never change accordingly.

Code:
$newdata = array(
                   'username'  => 'johndoe',
                   'email'     => '[email protected]',
                   'logged_in' => TRUE
               );

$this->session->set_userdata($newdata);


Messages In This Thread
How to store "custom session data" in sessions table? - by El Forum - 09-21-2008, 01:34 PM
How to store "custom session data" in sessions table? - by El Forum - 09-21-2008, 02:18 PM
How to store "custom session data" in sessions table? - by El Forum - 09-21-2008, 05:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB