Results 1 to 2 of 2

Thread: Forms Authentication & roles

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    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

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    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
  •  



Click Here to Expand Forum to Full Width