forms authentication

  • Thread starter Thread starter Francois Malgreve
  • Start date Start date
F

Francois Malgreve

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:

<authentication mode="Forms">

<forms loginUrl="Authentication.aspx" />

</authentication>

What is wrong is there anything more that i need to do?
 
sorry for the useless post, i found the solution by myself,

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

<authorization>

<deny users="?" />

</authorization>
 
Back
Top