1cgi_cookie_set(3) cgi/cgi.h cgi_cookie_set(3)
2
3
4
6 cgi_cookie_set - Set a browser Cookie
7
9 #include <cgi/cgi.h>
10
11
12 NEOERR *cgi_cookie_set (CGI *cgi, const char *name, const char *value,
13 const char *path, const char *domain,
14 const char *time_str, int persistent, int secure);
15
16
17
18
20 cgi - a CGI struct
21 name - the name of the cookie
22 value - the value to set the cookie to.
23 path - optional path for which the cookie is valid. Default
24 is /
25 domain - optional domain for which the cookie is valid. You
26 can use cgi_cookie_authority to determine this
27 domain. Default is none, which is interpreted by
28 the browser as the sending domain only.
29 time_str - expiration time string in the following format
30
31
33 cgi_cookie_set will issue a Set-Cookie header that should cause a
34 browser to return a cookie when required. Note this function does no
35 escaping of anything, you have to take care of that first.
36
37 HH:MM: SS GMT. Only used if persistent. Default is one year from time
38 of call. persistent - cookie will be stored by the browser between
39 sessions secure - cookie will only be sent over secure connections
40
41
43 None
44
45
47 cgi_filehandle(3), cgi_debug_init(3), cgi_register_parse_cb(3),
48 cgi_url_escape(3), cgi_parse(3), cgi_destroy(3), cgi_init(3), cgi_redi‐
49 rect_uri(3), cgi_js_escape(3), cgi_html_escape_strfunc(3), cgi_regis‐
50 ter_strfuncs(3), cgi_output(3), cgi_text_html_strfunc(3),
51 cgi_cookie_clear(3), parse_rfc2388(3), cgi_redirect(3), open_upload(3),
52 cgi_url_unescape(3), cgi_vredirect(3), cgi_cs_init(3), cgi_display(3),
53 cgi_html_ws_strip(3), cgi_error(3), cgi_cookie_set(3),
54 cgi_url_escape_more(3), cgi_html_strip_strfunc(3), cgi_neo_error(3),
55 cgi_cookie_authority
56
57
58
59ClearSilver 14 November 2006 cgi_cookie_set(3)