We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
ASP.NET Forms Authentication - Part 1
|
| Subject: |
|
can not login in unsecured zone |
| Date: |
|
2006-02-19 03:30:44 |
| From: |
|
Wiggy
|
Response to: can not login in unsecured zone
|
|
I had this same question, and I've now found the answer. In web.Config at the moment you will have something like:-
<system.web>
<authentication mode="Forms" >
<forms
name="MyApp"
path="/"
loginUrl="Logon.aspx"
protection="All"
timeout="20">
</forms>
</authentication>
</system.web>
You will need to add after the </system.web> something like this:-
<location path="Public">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
This will allow anyone (authorised or not authorised) to access the pages in the "Public" directory.
|