CodeIgniter Forums

Full Version: session in DB not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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