CodeIgniter Forums

Full Version: Where to check Cookie?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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