System.Web.HttpCookie.Domain Property

Gets or sets the domain to associate the cookie with.

Syntax

public string Domain { set; get; }

Value

The current value of the domain. The default value is null.

Remarks

Setting the Domain attribute limits transmission of the cookie to clients requesting a resource from that domain.

Requirements

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