Forms Auth/Membership & Roles Providers/Secured Directory
- From: Drew <Drew@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 May 2009 13:25:01 -0700
When using Forms Auth in conjunction with Membership and Roles provider, we
have limited a directory to only users with the role Administrators using the
following web.config:
<location path="administration">
<system.web>
<authorization>
<deny users="?"/>
<allow roles="Administrator"/>
<deny users="*" />
</authorization>
</system.web>
</location
When a standard already authenticated user tries navigate into that
directory, they are redirected to the login page. Can they be sent to a main
page instead? We have specified the defaultUrl in the forms auth tag with:
defaultUrl="~/Home.aspx" but the users are not being sent there. Am i doing
something wrong?
.
- Follow-Ups:
- Re: Forms Auth/Membership & Roles Providers/Secured Directory
- From: Alexey Smirnov
- Re: Forms Auth/Membership & Roles Providers/Secured Directory
- Prev by Date: Re: Need to do a user creation/management/login/group membership
- Next by Date: Populating MembershipUserCollection Throws Exception
- Previous by thread: Need to do a user creation/management/login/group membership
- Next by thread: Re: Forms Auth/Membership & Roles Providers/Secured Directory
- Index(es):
Loading