asp.net 1.1 与 asp.net 2.0 共享验证的解决方法!

Make sure you have configured web.config in ASP.NET v1.1

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

   

  <system.web>

 

    <authentication mode="Forms">

            <forms loginUrl="login.aspx"

                  protection="All"        

                  timeout="2"                 

                  name=".ASPXFORMSAUTH"        

                  path="/"             

                  slidingExpiration="true" />   

      </authentication>

 

    <authorization>

            <deny users="?" />

    </authorization>

 

    <machineKey
validationKey="C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE"
decryptionKey="8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F"
        validation="SHA1"/> 

 

</system.web>

And web.config ASP.NET v2.0 should have the same information as above except machineKey key

            <machineKey             validationKey="C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE"              
decryptionKey="8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F"
decryption="3DES"
       validation="SHA1"/>

posted @ 2006-03-02 08:54  海潮的博客  阅读(239)  评论(0编辑  收藏  举报