CodeIgniter Forums
Where to check Cookie? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Where to check Cookie? (/thread-40210.html)



Where to check Cookie? - El Forum - 04-01-2011

[eluser]Peacemoon[/eluser]
Hi

my codeigniter application has some controllers. Now i want to check whether a user is already logged in or not, when not then i want to check cookie to get the login information. Should i add the piece of code for checking the cookies in all constructors of the controllers or is there any another way to do it more efficiently?

Thanks