|
-
Feb 20th, 2005, 12:34 PM
#1
Thread Starter
Fanatic Member
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
I am curretly building a defect management system for software and web developers,
If you wana try it out (beta test) and keep it for free just send me a message
-
Feb 20th, 2005, 06:21 PM
#2
Retired VBF Adm1nistrator
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]
Last edited by plenderj; Feb 20th, 2005 at 06:26 PM.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|