This article refers to the following Microsoft .NET Framework Class Library namespaces:
This section demonstrates how to add and modify the <authentication> and <authorization> configuration sections to configure the ASP.NET application to use forms-based authentication.
<authentication mode="Forms">
<forms name=".ASPXFORMSDEMO" loginUrl="logon.aspx"
protection="All" path="/" timeout="30" />
</authentication>
<authorization>
<deny users ="?" />
<allow users = "*" />
</authorization>
How To Implement Forms-Based Authentication in Your ASP.NET Application by Using C#.NET
原文:https://www.cnblogs.com/chucklu/p/13213642.html