FormsAuthentication.CookiesSupported 屬性

定義

取得表示應用程式是否設定為支援 Cookieless 表單驗證的值。

public:
 static property bool CookiesSupported { bool get(); };
public static bool CookiesSupported { get; }
member this.CookiesSupported : bool
Public Shared ReadOnly Property CookiesSupported As Boolean

屬性值

Boolean

如果應用程式已設定為支援 Cookieless 表單驗證,則為 false,否則為 true

範例

下列程式碼範例會將 cookieless Web.config 檔案中的 屬性設定為 UseUri 。 此組態會導致 CookiesSupported 屬性傳 false 回 。

<authentication mode="Forms">
  <forms loginUrl="member_login.aspx"
    cookieless="UseUri" />
</authentication>

備註

屬性 CookiesSupported 會根據 CookieMode 瀏覽器的值和功能傳回值。

適用於

另請參閱