CodeIgniter Forums
[SOLVED] Sessions Working on dev and production but not on testing box - 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: [SOLVED] Sessions Working on dev and production but not on testing box (/showthread.php?tid=48552)



[SOLVED] Sessions Working on dev and production but not on testing box - El Forum - 01-20-2012

[eluser]Clooner[/eluser]
The title says it all. I have a development Ubuntu machine, a testing Windows 7 machine and a production Centos6 machine. Whenever I run the site on either of my Linux boxes it works just fine. However when I go to my Windows 7 box the sessions are not working.

I'm running a version of easyphp on the windows 7 box and maybe there is a setting I need to change somewhere.

Hopefully someone could point me in the right direction why the sessions are not working on the windows 7 installation?




[SOLVED] Sessions Working on dev and production but not on testing box - El Forum - 01-20-2012

[eluser]Clooner[/eluser]
Somehow the match_useragent config was giving the trouble. Once I set that to FALSE it seems to work everywhere. I looked at the session library a bit but couldn't find anything...


[SOLVED] Sessions Working on dev and production but not on testing box - El Forum - 01-20-2012

[eluser]Clooner[/eluser]
The problem was that my sessions table was configured with a user_agent column with varchar 50. This made the comparison fail. I set it to varchar 255 and now everything works as it should.