I wrote a custom AuthorizeAttribute that has the following condition in an asp.net mvc3 application:
public override void OnAuthorization(AuthorizationContext filterContext) {
And in my web.config I have:
<authentication mode="Forms"> <forms loginUrl="~/User/SignIn" timeout="2880" /> </authentication>
If an authentication error occurs, it is redirected to the "/ Account / Login" page by default.
How to change this default redirect URL and redirect it to "/ User / SignIn"?
The screenshot shows a clear idea of ββwhat I'm trying to say. 
Although I set '/ User / SignIn', it redirects to '/ Account / Login'
authentication asp.net-mvc custom-attributes forms-authentication
Prasad
source share