Login Membership .NET
问题 Hi I was wondering what is the best way to force the user to login when arriving at a website, in .net. I have set up the Membership features and I was wondering what is the best way to ensure that no matter what address the user arrives at, they must first get authenticated before proceding to the page they requested. Any resources will be great, thanks. 回答1: Alter Web.config in application root to read: <authentication mode="forms"> <forms loginUrl="Login.aspx" defaultUrl="/" /> <