cgi_cookie_set (3) Linux Manual Page
cgi_cookie_set – Set a browser Cookie
Synopsis
#include <cgi/cgi.h>
NEOERR *cgi_cookie_set (CGI *cgi, const char *name, const char *value,
const char *path, const char *domain,
const char *time_str, int persistent, int secure);
Arguments
cgi – a CGI structname – the name of the cookie
value – the value to set the cookie to.
path – optional path for which the cookie is valid. Default
is /
domain – optional domain for which the cookie is valid. You
can use cgi_cookie_authority to determine this
domain. Default is none, which is interpreted by
the browser as the sending domain only.
time_str – expiration time string in the following format
Description
cgi_cookie_set will issue a Set-Cookie header that should cause a browser to return a cookie when required. Note this function does no escaping of anything, you have to take care of that first.HH:MM: SS GMT. Only used if persistent. Default is one year from time of call. persistent – cookie will be stored by the browser between sessions secure – cookie will only be sent over secure connections
