Muokkaa

Jaa


HttpTransportElement.AllowCookies Property

Definition

Gets or sets a value that indicates 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 cookies are allowed; otherwise, false. The default is false.

Attributes

Remarks

You can use this property 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