Forms Authentication won't redirect to login page

Discussion in 'ASP .Net Security' started by Max Figueredo via .NET 247, Sep 22, 2004.

  1. I'm trying to set basic form authentication on a webapp. I allaccess restricted to authenticated users. After changing theWeb.config file in the app's root, I'm still not beingredirected to the login page, I can freely access anything. Notethat, although I have used forms auth. before, this is a newtest 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="datasource=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 separateweb.config restricting acces. Same result, I don't getredirected to the login page.
    - Accessing web app from different machines.

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

    Thanks !

    Max


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

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

    <Id>vAhmKdekNU6YhIZeIJyLng==</Id>
     
    Max Figueredo via .NET 247, Sep 22, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Max
    Replies:
    0
    Views:
    579
  2. Alfredo Barrientos
    Replies:
    0
    Views:
    636
    Alfredo Barrientos
    Aug 31, 2005
  3. Dave
    Replies:
    4
    Views:
    1,594
  4. Jay
    Replies:
    3
    Views:
    2,271
    Gregory A. Beamer
    Nov 4, 2009
  5. Pascal Blanchard
    Replies:
    0
    Views:
    391
    Pascal Blanchard
    Aug 17, 2004
  6. Pascal Blanchard
    Replies:
    1
    Views:
    413
    Pascal Blanchard
    Aug 18, 2004
  7. Keltex
    Replies:
    1
    Views:
    548
    Dominick Baier [DevelopMentor]
    Jan 24, 2006
  8. Stephen Davies

    Forms Authentication - Sudden Redirect Failure on Login

    Stephen Davies, Jul 6, 2006, in forum: ASP .Net Security
    Replies:
    14
    Views:
    463
    Stephen Davies
    Jul 26, 2006
Loading...