Cookie.setDomain

Specifies the domain within which this cookie should be presented.

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

@param domain the domain name within which this cookie is visible; form is according to RFC 2109

@see #getDomain

class Cookie
void
setDomain
(
string domain
)

Meta