HttpCookie.Domain Property

Definition

Returns the domain name set for this cookie. -or- Specifies the domain within which this cookie should be presented.

public string? Domain { [Android.Runtime.Register("getDomain", "()Ljava/lang/String;", "")] get; [Android.Runtime.Register("setDomain", "(Ljava/lang/String;)V", "")] set; }
[<get: Android.Runtime.Register("getDomain", "()Ljava/lang/String;", "")>]
[<set: Android.Runtime.Register("setDomain", "(Ljava/lang/String;)V", "")>]
member this.Domain : string with get, set

Property Value

a String containing the domain name

Attributes

Remarks

Property getter documentation:

Returns the domain name set for this cookie. The form of the domain name is set by RFC 2965.

Java documentation for java.net.HttpCookie.getDomain().

Property setter documentation:

Specifies the domain within which this cookie should be presented.

The form of the domain name is specified by RFC 2965. A domain name begins with a dot (.foo.com) and means that the cookie is visible to servers in a specified Domain Name System (DNS) zone (for example, www.foo.com, but not a.b.foo.com). By default, cookies are only returned to the server that sent them.

Java documentation for java.net.HttpCookie.setDomain(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to