Results 1 to 5 of 5

Thread: Forms Authentication

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Forms Authentication

    Hi,


    I am using forms authentication in my web app (asp.net 1.1, VS 2003) which is great for locking down individual pages and also entire directories for specified users and roles.

    I would like to take it one step further and be able to give users specific rights, such as read/write.

    How would i begin to do this? What would be a good starting point?

    Regards,


    Matt.

  2. #2
    Lively Member
    Join Date
    Oct 2004
    Posts
    88

    Re: Forms Authentication

    Maybe you could create roles for that privilege?

    I tried to create roles in the XML of web.config, at the authorization/authentication node. I was dissapointed when I realized that it can't be done, unless I use the database. (Am I wrong?)
    Anyway, here's the link with some info about roles in forms authentication:
    http://aspnet.4guysfromrolla.com/articles/082703-1.aspx

  3. #3
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Forms Authentication

    Quote Originally Posted by MattJH
    I would like to take it one step further and be able to give users specific rights, such as read/write.
    In what sense?
    To a network drive, or a DB?

    WOka

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Re: Forms Authentication

    Hi,

    It is for an SQL Server.


    Regards,


    Matt.

  5. #5
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Forms Authentication

    errr...Have a login tabel with Username, Password and an admin bit field.
    After they login, store the UserID in a cookie or sesssion.

    Then on a page, if they arn't admin, then redirect them to another page, or hide buttons etc.

    Woka

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