Edit

Share via


FormsAuthentication.CookiesSupported Property

Definition

Gets a value that indicates whether the application is configured to support cookieless forms authentication.

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

Property Value

false if the application is configured to support cookieless forms authentication; otherwise, true.

Examples

The following code example sets the cookieless attribute to UseUri in the Web.config file. This configuration will result in the CookiesSupported property returning false.

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

Remarks

The CookiesSupported property returns a value based on the CookieMode value and the capabilities of the browser.

Applies to

See also