HTTP Error 403 - Access denied

1

I have a website that uses Forms Authentication. When I test in debug or development server, in IIS7, it works fine. When I publish 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()
    
asked by anonymous 04.08.2014 / 15:30

1 answer

1

I was able to solve my problem by replacing

FormsAuthentication.RedirectToLoginPage()

by

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

At least in my case it worked as desired.

    
07.08.2014 / 12:35