CodeIgniter Forums
Autoload Authentication - 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: Autoload Authentication (/showthread.php?tid=47816)



Autoload Authentication - El Forum - 12-23-2011

[eluser]Unknown[/eluser]
My application consists of several controllers. Users should be logged in before being able to access any controller (except the login controller). It seems redundant to call a "login check" function in each controller. What would be the best way to do this in CI? Should I load something into "application/config/autoload.php"?

Thanks,

Dave