Welcome Guest, Not a member yet? Register   Sign In
Community Auth - a database error when logging in
#3

(This post was last modified: 04-11-2017, 11:00 PM by icteroo. Edit Reason: typo )

Thanks for your reply.

I have tested with the following:

Code:
public function test()
{
  $this->load->library('session');
  $this->session->set_userdata(array( 'username' => 'testuser', 'logged' => TRUE));
  var_dump($_SESSION);
}

and I got the result:

in the browser http://mydomain.com/welcome/test

array(4) { ["__ci_last_regenerate"]=> int(1491940229) ["auth_identifiers"]=> string(81) "a:2:{s:7:"user_id";s:9:"309003055";s:10:"login_time";s:19:"2017-04-11 19:55:38";}" ["username"]=> string(8) "testuser" ["logged"]=> bool(true) }

on the server

Code:
/tmp $ sudo cat ci_sessionvg3kcrpgn7i2h0jggdbvm1j4ed64u7li
__ci_last_regenerate|i:1491940229;auth_identifiers|s:81:"a:2:{s:7:"user_id";s:9:"309003055";s:10:"login_time";s:19:"2017-04-11 19:55:38";}";username|s:8:"testuser";logged|b:1;
/tmp $

I think CI session is working fine...
Reply


Messages In This Thread
RE: Community Auth - a database error when logging in - by icteroo - 04-11-2017, 12:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB