Note: This article was originally published in 2009. Some steps, commands, or software versions may have changed. Check the current .Net documentation for the latest information.
If I wanted to redirect the user to the login page for some reason (either they are not logged in or we sign them out automatically) what would be the best way to redirect them there? I can manually do a Redirect but I am sure there is probably a more integrated method to do this through ASP.Net membership or something. Also, the Web.config already has the login page, so from a maintainability perspective I don’t want to keep the login URL in many places. Any thoughts?
One of the most consistant methods would be the following: ///