CCookie::setName
The CCookie::setName function sets the name of the cookie.
int setName(
chchar * name // containing the name of the cookie
);
Return Type
int
Upon successful completion, zero is returned. Otherwise, a value of non-zero is returned.
Parameters
name
A string containing the name of the cookie.
Remarks
This function sets the name of the cookie. The CCookie::getName function can be used to retrieve the name of the cookie.
See Also
CCookie, CCookie::getName, CResponse::addCookie, CRequest::getCookies, CRequest::getCookie
Example