CCookie::setValue

The CCookie::setValue function sets the value of the cookie.

int setValue(
chchar * value // containing the value of the cookie
);



Return Type

int
Upon successful completion, zero is returned. Otherwise, a value of non-zero is returned.


Parameters

value
A string containing the value of the cookie.


Remarks

This function sets the value of the cookie. The CCookie::getValue function can be used to retrieve the value of the cookie.


See Also

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

Example