Edit

Share via


BasicHttpBindingElement.AllowCookies Property

Definition

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

public:
 property bool AllowCookies { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("allowCookies", DefaultValue=false)]
public bool AllowCookies { get; set; }
[<System.Configuration.ConfigurationProperty("allowCookies", DefaultValue=false)>]
member this.AllowCookies : bool with get, set
Public Property AllowCookies As Boolean

Property Value

true if the client accepts cookies and propagates them on future requests; otherwise, false. The default is false.

Attributes

Remarks

You can use this attribute when you interact with ASMX Web services that use cookies. In this way, you can be sure that the cookies returned from the server are automatically copied to all future client requests for that service.

Applies to