2013-10-23 52 views

回答

2

照照web.config爲Web項目authentication部分:

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

如果你有一個像上面的條目,那麼你的Web應用程序使用Forms Authentication

注:mode屬性是你所感興趣的東西,它可以有以下值:

  • 形式
  • 的Windows
  • 護照

authentication Element文檔以獲取更多信息。

0

web.config文件中查找<system.web>部分,其中將包含<authentication>標記。對於表單身份驗證,此標記將設置爲mode="Forms"。您可以在ASP.Net中使用的不同身份驗證方法(包括Forms Authenticaiton)上閱讀此MSDN article

1

如果您使用的IIS版本低於7,則檢查部署的web.config是唯一方法。

您需要查找 <authentication> </authentication>元素 - 特別是mode屬性。

如果您使用的是IIS 7+,還可以檢查IIS管理器中的設置。

根據您的Web應用程序的Authentication類別。

相關問題