CodeIgniter Forums
Unable to access CI session data in view when I go back to previous page - 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: Unable to access CI session data in view when I go back to previous page (/showthread.php?tid=52847)



Unable to access CI session data in view when I go back to previous page - El Forum - 06-28-2012

[eluser]Zaheer Awan[/eluser]
Dear All...Good Day!
I am having problem in accessing session user data in views. When I login the user to system, it successfully creates session variables but when I go back to the previous page e.g the login form, the session variable seems to be undefined. This problem persists on all pages. When you create session variable using set_userdata it is created successfully but when you try to access that variable on another view page it says undefined variable. What is the problem? I have already set the session to autoload as well..