WebHttpBindingElement.AllowCookies Property

Definition

Gets or sets a value that indicates whether the client accepts cookies and propagates them on future requests.

C#
[System.Configuration.ConfigurationProperty("allowCookies", DefaultValue=false)]
public bool AllowCookies { get; set; }

Property Value

true if cookies are allowed; otherwise, false. The default is false.

Attributes

Remarks

This property is provided as a convenience for using cookies included in HTTP headers. When cookies are accepted by the client by setting the property to true, cookies that are returned from the server are automatically copied to all future client requests to that service.

Applies to

Prodotto Versioni
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1