Form驗証

Form驗証

using System.Web.Security;

Authentication     驗証
Authorization    授權

Authentication( 4 mold)
None
Forms
Windows
Passport

exp:
<system.web>
    <authentication mode = "Forms">
        <forms name = "testA" loginUrl="Default.aspx" protection = "All" timeout = "30" path = "/">
        // protection <= cookie加密
        </forms>
    </authentication>
<system.web>