Re: form based authentication and free pages
From: Ben Amada (ben@powerpick.com)
Date: 09/26/02
- Next message: YA: "Re: form based authentication and free pages"
- Previous message: YA: "Re: form based authentication and free pages"
- In reply to: YA: "Re: form based authentication and free pages"
- Next in thread: YA: "Re: form based authentication and free pages"
- Reply: YA: "Re: form based authentication and free pages"
- Reply: YA: "Re: form based authentication and free pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Ben Amada" <ben@powerpick.com> Date: Thu, 26 Sep 2002 04:28:46 -0700
Hi YA,
Yes, you can use the <location> tags to make access restricted to
authenticated users only for one or more folders in your web application.
And you can also make one or more folders unrestricted where anyone
(authenticated and unauthenticated users) can access the pages.
Below is an example Web.Config I'm using. This Web.Config addresses two
sub-folders off of the root folder. The "protected" sub-folder can only be
accessed by authenticated users, and the "unprotected" folder can be
accessed by anyone. Hope this helps ...
<configuration>
<location path="protected">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="unprotected">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<system.web>
<authentication mode="Forms">
<forms
loginUrl="protected/login.aspx" />
</authentication>
</system.web>
</configuration>
-- Ben
- Next message: YA: "Re: form based authentication and free pages"
- Previous message: YA: "Re: form based authentication and free pages"
- In reply to: YA: "Re: form based authentication and free pages"
- Next in thread: YA: "Re: form based authentication and free pages"
- Reply: YA: "Re: form based authentication and free pages"
- Reply: YA: "Re: form based authentication and free pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|