Cookie.Discard Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a values that indicates whether the client is to discard the Cookie at the end of the current session.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

Syntax

'Declaration
Public Property Discard As Boolean
public bool Discard { get; set; }

Property Value

Type: System.Boolean
true if the client should discard the Cookie at the end of the session; otherwise, false. The default is false.

Remarks

This property is set by the server to instruct the client application whether to discard the Cookie at the end of the session. If true, the client application should discard the Cookie at the end of the session. This means that the Cookie should not be saved to the hard disk of the client computer.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference