CodeIgniter Forums
Where to check Cookie? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Where to check Cookie? (/showthread.php?tid=40210)



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