Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 3 and FlexiAuth
#11

(This post was last modified: 02-14-2015, 04:52 AM by itconstruct. Edit Reason: Fixed initial config file sess driver )

Hi Mwhitney,

Oh my goodness turns out I didn't update the config.php file correctly for Codeigniter 3.0 in relation to the sessions however learning about Xdebug, how to utilise it and interpret the results has been alot of time worthwhile and I will be using it going forward for sure.

Xdebug was able to point me in the right direction as after we last spoke I looked further at why that particular if statement was failing and what would cause that and determined that the sessions when looking at Xdebug results in PHPStorm were not showing any userdata for the sessions which wasn't picking up the data that was being added to the database.

My initial config for sessions after upgrading to 3.0 is as follows:

$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;

The config file after following your recommendations on how to isolate and debug the issue:

$config['sess_driver'] = 'database';
$config['sess_save_path'] = 'ci_sessions';
$config['sess_expiration'] = 7200;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;

I thought I would post this information for anyone else that ends up experiencing the same issues as I did.

Mwhitney thank you very much for your help it is greatly appreciated.

WOW for something so small and simple in the end it took a long time to fix. Glad its done now back to my coding.
Reply


Messages In This Thread
Codeigniter 3 and FlexiAuth - by itconstruct - 02-03-2015, 04:33 AM
RE: Codeigniter 3 and FlexiAuth - by mwhitney - 02-03-2015, 01:04 PM
RE: Codeigniter 3 and FlexiAuth - by itconstruct - 02-03-2015, 08:06 PM
RE: Codeigniter 3 and FlexiAuth - by itconstruct - 02-06-2015, 03:54 AM
RE: Codeigniter 3 and FlexiAuth - by itconstruct - 02-06-2015, 04:33 AM
RE: Codeigniter 3 and FlexiAuth - by mwhitney - 02-06-2015, 11:36 AM
RE: Codeigniter 3 and FlexiAuth - by itconstruct - 02-07-2015, 02:14 AM
RE: Codeigniter 3 and FlexiAuth - by itconstruct - 02-12-2015, 03:24 AM
RE: Codeigniter 3 and FlexiAuth - by itconstruct - 02-13-2015, 05:43 AM
RE: Codeigniter 3 and FlexiAuth - by mwhitney - 02-13-2015, 09:49 AM
RE: Codeigniter 3 and FlexiAuth - by itconstruct - 02-14-2015, 04:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB