Storing Sessions in DB not working - 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: Storing Sessions in DB not working (/showthread.php?tid=8399) |
Storing Sessions in DB not working - El Forum - 05-16-2008 [eluser]thody[/eluser] Hey all, I'm trying to get sessions stored in the db for my app, with no success. I have the DB set up, and have no problems connecting/querying it. My session config is as follows: Code: $config['sess_cookie_name'] = 'session'; I'm not seeing any entries going into the table, nor do I see any session related queries when I enable profiling. Any thoughts? Storing Sessions in DB not working - El Forum - 05-16-2008 [eluser]mironcho[/eluser] Hi Thody and welcome to the forums! Do you load database and session libraries (database first)? Storing Sessions in DB not working - El Forum - 05-16-2008 [eluser]thody[/eluser] Thanks! Yes, I have database and session autoloading, with database first. Storing Sessions in DB not working - El Forum - 05-16-2008 [eluser]thody[/eluser] One other quick note, I am able to set and retrieve data with $this->session->(set_)userdata, but it looks like they're being stored in php sessions as opposed to the db. Storing Sessions in DB not working - El Forum - 05-16-2008 [eluser]thody[/eluser] Update: It's looking like something else in my app is conflicting somehow because it works fine with a fresh install of CI. |