CCookie::getPath

The CCookie::getPath function retrieves the Path attribute of the cookie.

chchar * getPath();


Return Type

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


Parameters

None.


Remarks

This function retrieves the Path attribute of the cookie. The cookie is visible to all the pages in the directory you specify, and all the pages in that directory's subdirectories. Consult RFC 2109 for more information on setting path names for cookies.

The CCookie::setPath function can be used to set the Path attribute of the cookie.


See Also

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

Example