CodeIgniter Forums
secure area? how? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: secure area? how? (/showthread.php?tid=9206)



secure area? how? - El Forum - 06-16-2008

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


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

Thanks


secure area? how? - El Forum - 06-16-2008

[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


secure area? how? - El Forum - 06-17-2008

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

thanks Wink


secure area? how? - El Forum - 06-17-2008

[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?


secure area? how? - El Forum - 06-17-2008

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