How do I configure forms authentication? (resolved)
Here is my directory structure
Code:
[opsreport]
web.config
clientside.js
styles.css
logon.aspx
default.aspx
summary.aspx
[dataentry]
event.aspx
followup.aspx
[opsreport] is a virtual directory set as an application. [dataentry] is just a sub directory.
I want anyomous access for all files in the [opsreport] and forms authentication for all the files in [dataentry]. I would also like this all configured from 1 web.config file.
How do I configure forms authentication (resolved)
I finally found an answer!
http://www.theserverside.net/article...Authentication
web.config
Code:
<location path="dataentry">
<system.web>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
</location>
<location>
<system.web>
<authentication mode="Forms" >
<forms
name=".opsreport"
loginUrl="logon.aspx"
protection="All"
slidingExpiration="true"
timeout = "10"
/>
</authentication>
<authorization>
<allow users="?" />
</authorization>
...