IWriteCookie::put_Domain

The IWriteCookie::put_Domain method sets the Domain attribute of the write-only Cookies collection to the specified value.

HRESULT put_Domain(

  BSTR bstrDomain  // contains the new domain value

);

 

Parameters
bstrDomain
[in] A binary string that contains the new domain value.
Remarks

You can use this method to specify particular domains for a cookie. This method applies only to the Response.Cookies collection.

See Also

Cookies