HTTP 403 Error - Access denied

Asked

Viewed 497 times

1

I have a website that uses Forms Authentication. When I test in debug or on the development server, in IIS7, it works well. When I post to the Production server, and press the Logout button, an HTTP 403 error occurs. The code I have for the logout button is:

 FormsAuthentication.SignOut()
 FormsAuthentication.RedirectToLoginPage()

1 answer

1


I managed to solve my problem by replacing

FormsAuthentication.RedirectToLoginPage()

for

Response.Redirect("./mypage.aspx")

At least in my case it worked as desired.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.