Welcome Guest, Not a member yet? Register   Sign In
Resource Control approach...
#6

[eluser]CodeSpeed[/eluser]
Thanks for the replies, votes, hints and ideas guys!

Here's the strategy I've started implementing based on your recommendations:

1 - The user is presented with a login screen
2 - The user logs in
-- 2.a - if the user/password combination is wrong, return to login screen and say "Wrong user/pass!"
-- 2.b - if the user/pass combo is right but he has NO permissions, return to login screen and say "Sorry! Nobody loves you!"
-- 2.c - if the user/pass combo is right and he has at least one permission, store user info and his permissions using an array in the session var "user_credentials" and redirect to "dashboard"
3 - Once in the dashboard, the modules menu gets built on-the-fly based on the "user_credentials" session vars array. If the user is NOT entitled to use a module, the module is not listed in the menu.

Wish me luck!

PS - This CI thing is so cool! I've been coding this for a few hours and I'm done with "step 2"!!!


Messages In This Thread
Resource Control approach... - by El Forum - 10-10-2008, 02:11 PM
Resource Control approach... - by El Forum - 10-10-2008, 02:29 PM
Resource Control approach... - by El Forum - 10-10-2008, 04:37 PM
Resource Control approach... - by El Forum - 10-10-2008, 04:40 PM
Resource Control approach... - by El Forum - 10-11-2008, 08:45 AM
Resource Control approach... - by El Forum - 10-11-2008, 10:38 AM
Resource Control approach... - by El Forum - 10-11-2008, 12:44 PM
Resource Control approach... - by El Forum - 10-11-2008, 02:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB