CodeIgniter Forums
Sessions not saving to database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Sessions not saving to database (/showthread.php?tid=46398)



Sessions not saving to database - El Forum - 10-30-2011

[eluser]Unknown[/eluser]
I moved my CI project to a new server, and I'm having a strange problem with sessions.

When I set "sess_use_database" to "false", everything works fine. But when I change it to "true", it fails to store any userdata. I even dropped the sessions table and recreated it using the code in the manual.

I can't find any errors in the log file, so I'm at a lost to what the problem is. Does anyone have any suggestions?

I also tested by retrieving a userdata after setting it, and that does work. But it doesn't seem to be persisting to the next request.

Thank you,
Brad