MY_Controller and login-authentication misunderstanding probably |
[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, 11:24 AM
MY_Controller and login-authentication misunderstanding probably - by El Forum - 06-06-2011, 01:25 PM
MY_Controller and login-authentication misunderstanding probably - by El Forum - 06-06-2011, 01:58 PM
MY_Controller and login-authentication misunderstanding probably - by El Forum - 06-06-2011, 11:27 PM
MY_Controller and login-authentication misunderstanding probably - by El Forum - 06-07-2011, 12:35 AM
MY_Controller and login-authentication misunderstanding probably - by El Forum - 06-07-2011, 01:39 AM
MY_Controller and login-authentication misunderstanding probably - by El Forum - 06-07-2011, 01:49 AM
|