HttpCapabilitiesBase.SupportsRedirectWithCookie Property

 

Gets a value indicating whether the browser supports cookies on redirection.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

abstract SupportsRedirectWithCookie : bool with get
override SupportsRedirectWithCookie : bool with get

Property Value

Type: System.Boolean

true if the browser supports cookies on redirection; otherwise, false. The default is true.

With UP.Browser 4.1 or UP.Browser 3.2, the Redirect method behaves as if the value of the SupportsRedirectWithCookie property of the HttpBrowserCapabilities object is false, unless the Cookieless property in the SessionState section of Web.config has been explicitly set to true.

In ASP.NET 1.1, the options for this setting were true or false, but with ASP.NET 2.0, the choices are expanded, and AutoDetect is now the default setting. If your Web application has the cookieless attribute of the <sessionState> section in the Web.config file set to a Boolean value, Redirect should work as expected for these browsers.

The following code example shows how to determine whether the browser supports cookies on redirection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: