HttpCapabilitiesBase::Cookies Property

 

Gets a value indicating whether the browser supports cookies.

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

public:
property bool Cookies {
	bool get();
}

Property Value

Type: System::Boolean

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

The Cookies property indicates whether the browser application supports cookies. If the user has disabled cookies in their application, the Cookies property will not be affected.

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

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

.NET Framework
Available since 2.0
Return to top
Show: