![]() |
Sessions and error's - 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 and error's (/showthread.php?tid=48909) |
Sessions and error's - El Forum - 02-01-2012 [eluser]Unknown[/eluser] I know this topic has been beaten to death but I can't seem to work around the problem I am having on my own. If my application ever gets to an error 500 screen the session ID changes when I go back to the application. Is there anyway to prevent these sessions from failing in this way? I am using version 2.1.0. Steps to reproduce: Sessions typically work fine for me but if for any reason, i cause an error such as trying to load a library that doesn't exist or cause a database error in a model file I get to the error screen that says something like "A Database Error Occurred Error Number: 1146 .... blah blah blah Line number: XX" If I navigate back to the application my session has disappeared because my sessionid in the cisession cookie changes... Any insight is appreciated. |