Re: Different login page for each document...

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: David Jessee (djessee_at_houston.rr.com)
Date: 01/20/05


Date: Thu, 20 Jan 2005 02:18:37 -0600

can you take the approach of a single logon page and in the login, set the
users' Roles? then verify for different roles within the forms? instead of
adding users to each form's permission, you'd ass them to the groups.
Effectively its the mase hting, and its supported by the framework

"SB" <SB@discussions.microsoft.com> wrote in message
news:B60F9D0D-FA35-45DA-89BF-75A238F2D323@microsoft.com...
> Hi
> I'm trying to get forms-based authentication to authenticate different
users
> for differet pages, like this:
>
> <configuration>
> <location path="Member" allowOverride="true">
> <system.web>
> <authorization>
> <!-- allow tags must be first -->
> <allow users="Admin"/>
> <allow users="User"/>
> <deny users="*"/>
> </authorization>
> <authentication mode="Forms">
> <forms
> name="MyWebsiteCookieName"
> loginUrl="LoginPage1.aspx"
> protection="All"
> timeout="180"
> />
> </authentication>
> </system.web>
> </location>
> <location path="Admin" allowOverride="true">
> <system.web>
> <authorization>
> <!-- allow tags must be first -->
> <allow users="Admin"/>
> <deny users="*"/>
> </authorization>
> <authentication mode="Forms">
> <forms
> name="MyWebsiteCookieName"
> loginUrl="LoginPage2.aspx"
> protection="All"
> timeout="180"
> />
> </authentication>
> </system.web>
> </location>
> </configuration>
>
> But here I get this error:
> It is an error to use a section registered as
> allowDefinition='MachineToApplication' beyond application level.
>
> Many thanks for your help
> Simon