ASP.NET 2.0 Form Security Error

S

Sumi

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!
 
B

Bruno Piovan

try to add it to web.config

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

Bruno
 
S

S. Justin Gengo

Sumi,

Have you added who's allowed in the application?

You don't just need to set forms authentication you also have to set who has
access to what like this:

<authorization>

<allow roles="Admin" />

<deny users="*" />

</authorization>

Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top