CodeIgniter Forums
hooks : How to access session userdata in HOOKS - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: hooks : How to access session userdata in HOOKS (/thread-26629.html)



hooks : How to access session userdata in HOOKS - El Forum - 01-19-2010

[eluser]pankaj[/eluser]
I am using hooks for checking whether user is logedin or not in pre_controller point. but I am not able to access session's userdata. how to access it or is it a right way to access session data.


hooks : How to access session userdata in HOOKS - El Forum - 01-19-2010

[eluser]pankaj[/eluser]
I got the solution I used "post_controller_constructor" point for hooks and I got instance of CI in class mention in array.
and now everything is in my hand.

Smile