CodeIgniter Forums
Sessions broken in 2.03 - 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 broken in 2.03 (/showthread.php?tid=44718)



Sessions broken in 2.03 - El Forum - 08-24-2011

[eluser]DougW[/eluser]
I just upgraded to 2.03. I have a generic controller that everything passes through. If $this-session->userdata('uid') is not set, it calls login. I login, I check the uid variable in the login controller and it is set. So I redirect to / and back at the generic controller, the uid variable is cleared. What has changed about this functionality? Everything worked in 2.02.

BTW, $this->session->userdata('uid') is being set in a model. Does this matter?

The login controller does not extend generic whereas all of my other controllers do.

UPDATE: It appears as though this may be a bug. When the session class is called it appears as though the session array is always re-initialized and loses any custom user data I have added.