Redirect after login results in 404 error if a user submits a form to a POST-only action and their authentication has timed out
问题 I have an MVC app using Forms Authentication, and I'm getting 404 errors. What's happening is the user happens to be submitting a form to a POST-only action when their authentication has timed out, and they are redirected to the login page. After login they are redirected back to the original URL using GET, which will result in a 404 error as the action is POST-only. I have two questions: My idea to get around this is to somehow detect whether the action being redirected to is a POST-only