Forms Authentication won't redirect to login page

From: Max Figueredo via .NET 247 (anonymous_at_dotnet247.com)
Date: 09/22/04


Date: Wed, 22 Sep 2004 12:45:22 -0700

I'm trying to set basic form authentication on a webapp. I all access restricted to authenticated users. After changing the Web.config file in the app's root, I'm still not being redirected to the login page, I can freely access anything. Note that, although I have used forms auth. before, this is a new test server.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    
  <system.web>
    <compilation defaultLanguage="vb" debug="true" />

    <customErrors mode="RemoteOnly" />

    <authentication mode="Forms">
          <forms name=".FORUM"
             loginUrl="login.aspx"
             protection="All"
             timeout="30"
             path="/"/>
    </authentication>

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

    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />

    <sessionState
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
            cookieless="false"
            timeout="20"
    />

    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
   
  </system.web>

  <location path="Secure/">
    <system.web>
      <authorization>
        <deny users="?" />
      </authorization>
    </system.web>
  </location>

</configuration>

Things that I have tried already include:
- Reinstalling ASP.net
- Creating a separate "Secure" subdirectory, with a separate web.config restricting acces. Same result, I don't get redirected to the login page.
- Accessing web app from different machines.

I have the feeling that it has something to do with server configuration / permissions, if someone could maybe point into the right direction.

Thanks !

Max

--------------------------------
From: Max Figueredo

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>vAhmKdekNU6YhIZeIJyLng==</Id>



Relevant Pages