I have a web application, and some users who use Chrome as their preferred browser get the following error when they exit the application, and try to log in.
"This web page has a redirect cycle."
My web application uses forms authentication and FormAuthenticationModuleredirects the user to the login page of my application, so I cannot use this approach:
<customErrors mode="On" defaultRedirect="~/MyErrorPage.aspx" >
<error statusCode="401" redirect="~/NoAccess.aspx"/>
</customErrors>
Instead, I added the following event of Page_Loadmine LoginPage.
if (Request.IsAuthenticated && !string.IsNullOrEmpty(Request.QueryString["ReturnUrl"]))
{
Response.Redirect("~/NoAccess.aspx");
}
However, since I added this approach, users seem to get a "Redirect Loop" error.
After clearing the cookies, everything looks good, but the problem arises again.
, , - , , ?
user1269016