Re: FormsAuthentication - Roles
From: Saravana (saravank_at_sct.co.in)
Date: 12/15/04
- Next message: seep: "Re: How to mouseover that pops up a message"
- Previous message: Eliyahu Goldin: "Re: server side code access the text of <asp:label> changed by client-side javascript code?"
- In reply to: Peter Morris [Air Software Ltd]: "FormsAuthentication - Roles"
- Next in thread: Saravana: "Re: FormsAuthentication - Roles"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 23:58:12 +0530
Check out this article,
How To Implement Role-Based Security with Forms-Based Authentication in Your
ASP.NET Application by Using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;306238
-- -Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com "Peter Morris [Air Software Ltd]" <peter.morris@guess.co.uk> wrote in message news:em9GHLt4EHA.924@TK2MSFTNGP14.phx.gbl... > Hi > > I validate the username/password and then execute the following code > > System.Web.Security.FormsAuthentication.RedirectFromLoginPage( > authorId, RememberCheckBox.Checked > ); > > One folder I want to restrict to anyone logged in..... > > <location path="Members"> > <system.web> > <authorization> > <deny users="?"/> > </authorization> > </system.web> > </location> > > On another folder I want to restrict access only to a member which has > "IsAdministrator" set to True in the database. > > <location path="Admin"> > <system.web> > <authorization> > <deny users="*"/> > <allow roles="Admin"/> > </authorization> > </system.web> > </location> > > Is this correct? How do I tell FormsAuthentication that the current user > has the Admin role? > > Thanks > > > -- > Pete > ==== > Read or write articles on just about anything > http://www.HowToDoThings.com > > My blog > http://blogs.slcdug.org/petermorris/ > >
- Next message: seep: "Re: How to mouseover that pops up a message"
- Previous message: Eliyahu Goldin: "Re: server side code access the text of <asp:label> changed by client-side javascript code?"
- In reply to: Peter Morris [Air Software Ltd]: "FormsAuthentication - Roles"
- Next in thread: Saravana: "Re: FormsAuthentication - Roles"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|