Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Coders

I need help on how best i can create a user login and and assign priviledges to those users as well..Forexample enable or disable some fuctions when a particular user logs in to my system

--Thanks
Posted

1 solution

You write code. Create a DB that stores users in one table, roles in another, then a joining table, so any user can have as many or few roles as you like
 
Share this answer
 
Comments
sharpheaque 19-Nov-12 18:51pm    
thnx Graus, but..could you please throw more light on that...or may be with a little code?? seems i just cant get how to assign the roles after joining the tables...and then a friend tells me that there is a library for that....is that right???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900