日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > asp.net >内容正文

asp.net

ASP.NET MEMBERSHIP的XML配置

發布時間:2023/12/1 asp.net 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ASP.NET MEMBERSHIP的XML配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
做了一個MEMBERSHIP的測試,先記下來,以備后用!JAVAEYE網站是不是被人攻擊了啊。。怎么打不開。。暈。。我有好多文章都在里面啊。。都沒有備份的。。。 ??<connectionStrings>
????
<add?name="conn"?connectionString="server=.\sqlexpress;uid=sa;pwd=123456;database=test"/>
??
</connectionStrings>
?
<system.web>
?
<!--?開啟角色管理?-->
????
<roleManager?enabled="true"?/>
????
<!--?membership配置?-->
????
<membership?userIsOnlineTimeWindow="20">
??????
<providers>
????????
<remove?name="AspNetSqlMembershipProvider"?/>
????????
<add?connectionStringName="conn"?enablePasswordRetrieval="false"
?????????enablePasswordReset
="true"?requiresQuestionAndAnswer="true"?applicationName="/"
?????????requiresUniqueEmail
="false"?passwordFormat="Clear"?maxInvalidPasswordAttempts="5"
?????????minRequiredPasswordLength
="6"?minRequiredNonalphanumericCharacters="0"
?????????passwordAttemptWindow
="10"?passwordStrengthRegularExpression=""
?????????name
="AspNetSqlMembershipProvider"?type="System.Web.Security.SqlMembershipProvider,?System.Web,?Version=2.0.0.0,?Culture=neutral,?PublicKeyToken=b03f5f7f11d50a3a"?/>
??????
</providers>
????
</membership>
????
<!-- 啟用匿名用戶-->
????
<anonymousIdentification
??enabled
="true"
??cookieName
=".AnonymousUser"
??cookieTimeout
="60"
??cookiePath
="/"
??cookieRequireSSL
="false"
??cookieSlidingExpiration
="true"
??cookieProtection
="Validation"
??cookieless
="UseCookies"
?????
/>

????
<!--??第一個Profile設置,可用中文,推薦英文?-->
????
<profile?automaticSaveEnabled="true"?enabled="true"?defaultProvider="MembershipTest">
??????
<providers>
????????
<add?name="MembershipTest"?connectionStringName="conn"?type="System.Web.Profile.SqlProfileProvider,?System.Web,?Version=2.0.0.0,?Culture=neutral,?PublicKeyToken=b03f5f7f11d50a3a"?/>
??????
</providers>
??????
<properties>
????????
<add?name="性別"?type="System.String"?allowAnonymous="true"?/>
????????
<add?name="生日"?type="System.DateTime"?allowAnonymous="true"?/>
????????
<add?name="星座"?type="System.String"?allowAnonymous="true"?/>
????????
<group?name="地址">
??????????
<add?name="國家"?defaultValue="中國"?type="System.String"?allowAnonymous="true"?/>
??????????
<add?name="城市"?type="System.String"?allowAnonymous="true"?/>
??????????
<add?name="郵編"?type="System.Int32"?allowAnonymous="true"?/>
????????
</group>
??????
</properties>
????
</profile>
????
<!--
????????????通過?
<authentication>?節可以配置?ASP.NET?用來?
????????????識別進入用戶的
????????????安全身份驗證模式。?
????????
-->
????
<authentication?mode="Forms">
??????
<forms?name="myAuthentication"?loginUrl="Login.aspx"?timeout="60"?/>
????
</authentication>
????
<!--
????????????如果在執行請求的過程中出現未處理的錯誤,
????????????則通過?
<customErrors>?節可以配置相應的處理步驟。具體說來,
????????????開發人員通過該節可以配置
????????????要顯示的?html?錯誤頁
????????????以代替錯誤堆棧跟蹤。

????????
<customErrors?mode="RemoteOnly"?defaultRedirect="GenericErrorPage.htm">
????????????
<error?statusCode="403"?redirect="NoAccess.htm"?/>
????????????
<error?statusCode="404"?redirect="FileNotFound.htm"?/>
????????
</customErrors>
????????
-->
??
</system.web> 源碼文件:/Files/niunan/membership測試.7z

轉載于:https://www.cnblogs.com/niunan/archive/2009/08/29/1556331.html

總結

以上是生活随笔為你收集整理的ASP.NET MEMBERSHIP的XML配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。