help with Form Authentication

M

Mohan

Using Form authetication to grant users access to a web application. If
I go to the default webpage it shows the login screen but if enter a
specific page in the application, it allows access instead to
redirecting to the login screen. I am not sure how to avoid this. Below
is the code from the app. I would appreciate if anyone could help me
solve this problem.


web.config


<authorization>
<allow users="?"/>
</authorization>
<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="60"
loginUrl="login.aspx"/>
</authentication>


Thanks

MB
 
M

Mohan

Celebrated too soon. The problem now is that it keeps refreshing the
login screen and never enters the app. Does it have to do with IIS
settings. PLease help

MB
 
S

shane

Celebrated too soon. The problem now is that it keeps refreshing the
login screen and never enters the app. Does it have to do with IIS
settings. PLease help

Are you using FormsAuthentication to redirect from your login page?

FormsAuthentication.RedirectFromLoginPage(user, rememberMe.Checked)

-shane
 

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,045
Latest member
DRCM

Latest Threads

Top