• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.