CCookie::getDomain

The CCookie::getDomain function retrieves the Domain attribute of the cookie.

chchar * getDomain();


Return Type

chchar *
Upon successful completion, a string which contains the value of the Domain attribute of the cookie is returned. Otherwise, NULL is returned.


Parameters

None.


Remarks

This function retrieves the Domain attribute of the cookie. The value of the Domain attribute specifies the domain for which the cookie is valid. If an explicitly specified value does not start with a dot, the user agent supplies a leading dot.

The CCookie::setDomain function can be used to set the Domain attribute of the cookie.


See Also

CCookie, CCookie::setDomain, CResponse::addCookie, CRequest::getCookies, CRequest::getCookie

Example