Welcome Guest, Not a member yet? Register   Sign In
Get all stored sessions
#7

(This post was last modified: 02-15-2016, 02:19 PM by vertisan.)

I do something like this:
Code from model (I using IonAuth):

$this->db->insert( 'ci_sessions', array( 'logged_id' => $user->id ) );
$this->session->set_userdata($session_data);


but now, when I'm logged it's adding 'user_id' to new column - ok, but other are empty, why? (sorry, I'm not good with sessions)


I created 'Session_dummy_driver' with this method:
PHP Code:
public function write($session_id$session_data)
        {
                
$this->db->where'id'$session_id );
                
$this->update'logged_id'$session_data->user_id );
        } 

But not updated 'logged_id' - where is my bad?
Reply


Messages In This Thread
Get all stored sessions - by vertisan - 02-15-2016, 04:20 AM
RE: Get all stored sessions - by Narf - 02-15-2016, 05:49 AM
RE: Get all stored sessions - by vertisan - 02-15-2016, 06:45 AM
RE: Get all stored sessions - by Narf - 02-15-2016, 08:09 AM
RE: Get all stored sessions - by vertisan - 02-15-2016, 09:33 AM
RE: Get all stored sessions - by Narf - 02-15-2016, 11:42 AM
RE: Get all stored sessions - by vertisan - 02-15-2016, 01:56 PM
RE: Get all stored sessions - by Narf - 02-15-2016, 03:44 PM
RE: Get all stored sessions - by vertisan - 02-16-2016, 06:54 AM
RE: Get all stored sessions - by Narf - 02-16-2016, 09:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB