forms authentication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Francois Malgreve

    forms authentication

    I want to force anyone who gets in my website to login if he did not log in
    yet.

    Like is he is accesssing a page "dummy.aspx ", he will be redirected to the
    login page if did not log in yet.

    I configured my web.config as following but i can still access dummy.aspx
    without being redirected to Authentication. aspx:

    <authenticati on mode="Forms">

    <forms loginUrl="Authe ntication.aspx" />

    </authentication>

    What is wrong is there anything more that i need to do?


  • Francois Malgreve

    #2
    Re: forms authentication

    sorry for the useless post, i found the solution by myself,

    I just need to add the following in the web.config file

    <authorizatio n>

    <deny users="?" />

    </authorization>

    "Francois Malgreve" <francois at bettinghouses.c om> wrote in message
    news:%23e0WZucz DHA.4060@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > I want to force anyone who gets in my website to login if he did not log[/color]
    in[color=blue]
    > yet.
    >
    > Like is he is accesssing a page "dummy.aspx ", he will be redirected to the
    > login page if did not log in yet.
    >
    > I configured my web.config as following but i can still access dummy.aspx
    > without being redirected to Authentication. aspx:
    >
    > <authenticati on mode="Forms">
    >
    > <forms loginUrl="Authe ntication.aspx" />
    >
    > </authentication>
    >
    > What is wrong is there anything more that i need to do?
    >
    >[/color]


    Comment

    Working...