Cookies Library get_cookiejar() set_cookie()
Programming guideline of WinDom

new_cookie()

NAME

new_cookie() - insert a cookie in the cookiejar.

PROTOTYPAGE

int *new_cookie( long cookie, long value);

PARAMETERS

cookie:
cookie identifier to insert,

value:
cookie value to insert,

return:
0 if echec (cookiejar full), 1 if no error.

DESCRIPTION

new_cookie inserts a cookie in the cookiejar. If the cookiejar is full, new_cokie() is not able to reallocate the cookiejar. In this case you should resize the cookiejar with a patch such as INSJAR.

SEE ALSO

set_cookie().