Welcome Guest, Not a member yet? Register   Sign In
session in DB not working
#1

(This post was last modified: 08-23-2017, 11:09 PM by WitekS.)

With each use
Code:
session () -> Start ();

All records are updated in the database although the session id is only one answer
Each time, the user's data is also deleted, although the session length is set to 7200 by default...
I changed
Code:
$sessionDriver = 'CodeIgniter \ Session \ Handlers \ DatabaseHandler';

on

Code:
$sessionDriver = 'CodeIgniter \ Session \ Handlers \ FileHandler';

and

Code:
$sessionSavePath = 'ci_sessions';

on

Code:
$sessionSavePath = '../writable/ses';

And everything works so it looks like the problem is with the sessions stored in the database.
I reported this as a bug on the github repository

Attached Files Thumbnail(s)
       
Reply




Theme © iAndrew 2016 - Forum software by © MyBB