CodeIgniter Forums
session in DB not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: session in DB not working (/showthread.php?tid=68769)



session in DB not working - WitekS - 08-23-2017

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