Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-05-2006, 06:34 AM #1
Suggestions on setting up security / login system for a site
Looking for IDEAS.
I currently have a standard User-Id/Password login to a web site maint area, I am trying to figure out what would be the best way to add some functionality to it. What I want to try and do is set it up so there are different access lvls (IE. add pages, delete page, edit page type 1, edit page type 2, utitlity section, add users)
Current MySQL DB has a table with User-ID, Password fields and I was thinking of adding a True/False field for every section but it seems like that could get kind of bulky to me.
11-05-2006, 07:19 AM #2
- Join Date
- Dec 2005
- Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
- Thanked 637 Times in 625 Posts
One design concept I've seen is you have a couple of tables. A "Profile" table stores a profile name and ID and not much more. An "Access" table lists processes/transactions/etc each profile it can access, using profile ID as foreign key. Then you assign a profile to each user. You create as many profiles as you have unique combinations of access in the system.
The advantage to this is you can change access to an entire group of users by just changing a single profile without having to change every user in the group.