Sunday, January 31, 2010

Redirect the user to Login screen on password change in ASP.NET MVC

The best way to accomplish this in ASP.Net MVC is to use AuthorizeAttribute action filter. Derive your class from AuthorizeAttribute class and overrides the OnAuthorization() method to implement the redirection logic. See the code below.

No comments:

Post a Comment