title: Force user login MVC
body: <p>I have an MVC 5 site (based on nopCommerce), and I need to force all users to log in. The way I've done it in the past in other languages was to check in the page header (so it's on every page) if the user is logged in, and redirect to the login page if they aren't. I don't know the proper way to accomplish this in MVC, however. Other answers I found said that redirection is not a thing to do in MVC, which is fine, but I can't figure out how to properly accomplish this. How do I redirect all unauthorized users to a login page?</p>