<authentication mode="Forms">
   <forms name=".ASPXCOOKIEDEMO" loginUrl="login.aspx" protection="all" timeout="30" path="/">
                    <!-- protection="[All|None|Encryption|Validation]" -->
   </forms>
</authentication>

解决方案 »

  1.   

    http://chs.gotdotnet.com/quickstart/aspplus/doc/formsauth.aspx
      

  2.   

    1. 在子文件夹下写web.config
      

  3.   

    http://www.microsoft.com/china/msdn/library/SecurityGuide/NoBios.asp
      

  4.   

    我是这样做的:在web.config中加入:
    <location path="manager">   //manager为被保护的文件夹
          <system.web>   
             <authorization>
                <deny users="?"/>
             </authorization>
          </system.web>
       </location> 
    其它地方:
     <authentication mode="Forms">
            <forms name="aspuser" loginUrl="login.aspx" protection="All" timeout="30" path="/">                    
            </forms>
       </authentication> 
           
         <authorization>
                <allow users="*"/>
             </authorization> 
    如果还解决不了,我把我的web.config文件发给你。
      

  5.   

    谢谢各位的帮助,现有我主要是第3个问题急切需要解决,
    我先将web.config里面的(<authentication mode="None" /> )然后再改为(<authentication mode="Forms" />但再不转入login页了.
      

  6.   

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

  7.   

    我是这样写的通过
    <authentication mode="Forms"/>
       
        <authorization>
            <allow users="*"/> <!-- 允许所有用户 -->
         </authorization>
      

  8.   

    你可以这样修改的
      ....为省略   
     </system.web>
            ..............
            <authentication mode="Forms">
                <forms name=".ADUAUTH" loginUrl="secure\logon.aspx" protection="All" >
                </forms>
            </authentication>
                
            <authorization>
                <allow users="*" />
            </authorization>
            ..............    </system.web>