help with Form Authentication

  • Thread starter Thread starter Mohan
  • Start date Start date
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
 
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
 
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
 
Back
Top