seeForms-Based Authentication
http://samples.gotdotnet.com/quickstart/aspplus/doc/formsauth.aspx

解决方案 »

  1.   

    <authentication mode="Forms">
       <forms name=".ASPXCOOKIEDEMO" loginUrl="login.aspx" protection="all" timeout="30" path="/">
                        <!-- protection="[All|None|Encryption|Validation]" -->
       </forms>
    </authentication>authentication这个元素只能在应用程序的根目录设置,不能为应用程序的某一个目录设置,也就是说在根目录设置后整个应用程序都需要验证,而不是这个应用程序下的某一个目录!
      

  2.   

    <authentication mode="Forms">
       <forms name=".ASPXCOOKIEDEMO" loginUrl="login.aspx" protection="all" timeout="30" path="/">
                           </forms>
    </authentication>
      

  3.   

    http://localhost/quickstart/ASPPlus/doc/formsauth.aspx