CodeIgniter Forums
Can't access regular $_SESSION in CI models, controllers? - 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: Can't access regular $_SESSION in CI models, controllers? (/showthread.php?tid=47539)



Can't access regular $_SESSION in CI models, controllers? - El Forum - 12-12-2011

[eluser]Unknown[/eluser]
I can't seem to access any $_SESSION variables in my models, controller until the script runs the views. Is this a design of CI or something else? , Very annoying when i'm gonna work with my Session data which i don't like to do in the view.

Meaning they're always undefined until the code reach the views :S