Mono Class Library: System.Web.HttpCookie Overview | Members

System.Web.HttpCookie.Secure Property

Controls if the cookie is to be sent only using secure (encrypted) connections, meaning using SSL (HTTPS).

public bool Secure { set; get; }

Value

True if the value was transmited over a secure connection.

Remarks

The transmission of cookies using SSL can be set using web.config for the application as a default, as setting programmatically this property will override the value set in web.config.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0