ASP.NET 2.0 Form Security Error

S

Sk

Hi,

I've the following code in my web.config -

<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All"
timeout="30"
name=".ASPXAUTH"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false" />
</authentication>

And if I try "Default.aspx" directly in the browser; it is not pointing to
Login.aspx!

Please advice!
 
D

Dominick Baier [DevelopMentor]

add a <authorization> element that denies anonymous users

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

Sk

Thanks!
It worked out pretty well.

Dominick Baier said:
add a <authorization> element that denies anonymous users

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top