I'm not aware of . NET handling this for you but you could create a custom AuthorizationAttribute public class CustomAuthorization : AuthorizeAttribute { public string Url { get; set; } public override void OnAuthorization(AuthorizationContext filterContext) { if (!filterContext.HttpContext.User.Identity. IsAuthenticated) { filterContext.HttpContext.Response.
Redirect(Url); } base. OnAuthorization(filterContext); } } An add that to your controllers/actions CustomAuthorization(Url="/Area/Login") public class HomeController { //... }.
Wohoo... I was exacting thinking on these lines... lemme see if I am able to sort it ...... if I am able to, you will get your points :) – effkay May 6 at 12:13.
Can I have different login URL for different ASP . NET MVC3 areas? I would like to have different login page for Administrator and Data entry operators.
I see a web. But it does not play well.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.