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

[eluser]Asinox[/eluser]
Hello , is me again...


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

Thanks
#2

[eluser]mglinski[/eluser]
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).

Smile
Enjoy
-Matt
#3

[eluser]Asinox[/eluser]
XtraFile yes, i want to use permission and levels Smile

thanks Wink
#4

[eluser]zimco[/eluser]
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?
#5

[eluser]mglinski[/eluser]
I might release my code as an auth library soon, so you might get your wish.
-Matt




Theme © iAndrew 2016 - Forum software by © MyBB