I want that when a non logged in user tries to access any controller that isn’t specifically allowed for non logged in users, the user get’s redirected to a controller to handle logon. How can i accomplish that in the best way? Thought it would be nice to do it in Global.asax.cs somehow, right?
Share
Use [Authorize] attribute. It works fine with Forms Authentication which I suppose is what you are using.