setDomain

The setDomain method of the Cookie class sets the domain value for a Cookie object.

public void setDomain(java.lang.String DomainName);

Example

The following code sets the domain for a cookie to msn.com.

CookCust.setDomain(“msn.com”);

© 1999 Microsoft Corporation. All rights reserved. Terms of use.