FormsAuthentication.CookiesSupported Property
Assembly: System.Web (in system.web.dll)
'Declaration Public Shared ReadOnly Property CookiesSupported As Boolean 'Usage Dim value As Boolean value = FormsAuthentication.CookiesSupported
/** @property */ public static boolean get_CookiesSupported ()
public static function get CookiesSupported () : boolean
Not applicable.
Property Value
true if the application is configured to support cookieless forms authentication; otherwise, false.The CookiesSupported property returns a value based on the CookieMode value and the capabilities of the browser.
-
If the CookieMode property is set to UseCookies, the CookiesSupported property will return true.
-
If the CookieMode property is set to UseUri, the CookiesSupported property will return false.
-
If the CookieMode property is set to AutoDetect, the CookiesSupported property will return true if the browser supports cookies and cookies are enabled; otherwise, the CookiesSupported property will return false.
-
If the CookieMode property is set to UseDeviceProfile, the CookiesSupported property will return true if the Browser for the current Request supports both cookies and redirecting with cookies; otherwise, the CookiesSupported property will return false.