Welcome Guest, Not a member yet? Register   Sign In
MY_Controller and login-authentication misunderstanding probably
#2

[eluser]cideveloper[/eluser]
Do not make an Auth Controller. Make an auth library. Then make a MY_Controller that checks if the user is logged in by calling a method in your auth library. Extend all controllers that need to be protected with MY_Controller. Since you are starting off from the sounds of it I suggest using a pre-built auth library like ion auth. I use it extensively and only once in a while do I need to alter it.


Messages In This Thread
MY_Controller and login-authentication misunderstanding probably - by El Forum - 06-06-2011, 01:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB