Welcome Guest, Not a member yet? Register   Sign In
secure area? how?

Hello , is me again...

somebody hav tutorials about secure area? for example administrator area?
how ill implement?


There are a number of prebuilt auth libraries available(freakauth, etc.).
I code my own, based on user profiles, and heres how i do it:

2 DB Tables: users, user_profiles

Users: self explanitory, include a row for profile ID

user_profiles: setup each row as a permission setting, one being a user access level.

On login grab the user profile and save it to session or retrive it on every page load. Then setup blocks in your code that will only work for specific permissions(rows in that DB).


XtraFile yes, i want to use permission and levels Smile

thanks Wink

Not trying to hi-jack somebody else's thread, but I'd really like to see actual code on how this is achieved.

Are there any step-by-step CI tutorials for creating a really simple basic secure login area for an application using something like FreakAuth or a custom one?

I might release my code as an auth library soon, so you might get your wish.

Theme © iAndrew 2016 - Forum software by © MyBB