Web.Config / Forms

Discussion in 'ASP.NET / ASP.NET Core' started by Bruce, Jul 29, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Bruce

    Bruce DiscountASP.NET Staff

    Remove the web.config in your parent dir, put this in your admin directory



    <configuration>

    <system.web>

    <authorization>
    <deny users="?" />
    </authorization>

    <authentication mode="Forms">
    <forms
    loginUrl="loginpage.aspx"
    name="passwordProtectFolder"
    path="thisDir/protectedPath"
    protection="All"
    timeout="80"
    />


    </system.web>

    </configuration>



    quote:Originally posted by jdenman

    I have a admin directory which has a web.config file that contains:
    quote:


    <configuration>

    <system.web>

    <authorization>
    <deny users="?" />
    </authorization>

    </system.web>

    </configuration>
    </blockquote id="quote"></font id="quote">
    And the parent directory has this in the web.config
    quote:
    <location path="protectedPath/">
    <system.web>
    <authentication mode="Forms">
    <forms
    loginUrl="loginpage.aspx"
    name="passwordProtectFolder"
    path="thisDir/protectedPath"
    protection="All"
    timeout="80"
    />
    </blockquote id="quote"></font id="quote">
    It's asking for the network user/pass, rather than redirecting to the loginpage.aspx file. Any ideas?
    </blockquote id="quote"></font id="quote">
     
  2. I have a admin directory which has a web.config file that contains:
    quote:


    <configuration>

    <system.web>

    <authorization>
    <deny users="?" />
    </authorization>

    </system.web>

    </configuration>
    </blockquote id="quote"></font id="quote">
    And the parent directory has this in the web.config
    quote:
    <location path="protectedPath/">
    <system.web>
    <authentication mode="Forms">
    <forms
    loginUrl="loginpage.aspx"
    name="passwordProtectFolder"
    path="thisDir/protectedPath"
    protection="All"
    timeout="80"
    />
    </blockquote id="quote"></font id="quote">
    It's asking for the network user/pass, rather than redirecting to the loginpage.aspx file. Any ideas?
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page