1Cookies(3)                 Library Functions Manual                 Cookies(3)
2
3
4

NAME

6       Cookies -
7
8   Functions
9       int cgi_add_cookie (const char *name, const char *value, const char
10           *max_age, const char *path, const char *domain, const int secure)
11           Send a cookie to the client.
12       char * cgi_cookie_value (const char *cookie_name)
13           Gets cookie value.
14

Function Documentation

16   int cgi_add_cookie (const char * name, const char * value, const char *
17       max_age, const char * path, const char * domain, const int secure)
18       Send a cookie to the client.Parameters:
19           name Cookie name
20           value Cookie value
21           max_age Cookie time life, in seconds. A value equal to 0 ( zero )
22           means to discard the cookie when the session is done.
23           path Cookie path at the server
24           domain Domain where cookie will work :)
25           secure Secure or not
26
27       See also:
28           cgi_cookie_value
29
30        cgi_add_cookie('mycookie', 'mycookie value', 0, 0, 0, 0);
31
32
33   char* cgi_cookie_value (const char * cookie_name)
34       Gets cookie value.Like cgi_param(), cgi_cookie_value() returns the data
35       contained in cookie_name cookie
36
37       Parameters:
38           cookie_name Cookie name to get the value
39
40       Returns:
41           The cookie value
42
43LibCGI                            13 Mar 2003                       Cookies(3)
Impressum