Forms Authentication & roles
Hey All
Have been looking at the asp.net examples of forms authenication and also roles, i am building a web app that will have a public site, client manager and admin manager, i wish to have just one login system for both secured area's
The login details will be datastored so i will have a role flag in the db, how can i control the roles other than using web.config because i want this to be dynamic and not have hard coded login details in the web.config's
Many Thanks
Carl
Re: Forms Authentication & roles
The way we do it is that there is a [User Level] numeric field in the DB. Then the menu system in our apps (implemented as user web controls), check the current user's User Level.
The User Level is stored in the Session() variable. So, the menu web control checks the user level, and depending on the user level, enables or disables (actually, makes visible or invisible) certain menu items.
[edit]
see my post here ... http://www.vbforums.com/showthread.php?t=325560
[/edit]