man libcgi_cookie (Fonctions bibliothèques) -

NAME

Cookies -

Functions

int cgi_add_cookie (const char *name, const char *value, const char *max_age, const char *path, const char *domain, const int secure)

Send a cookie to the client. char * cgi_cookie_value (const char *cookie_name)

Gets cookie value.

Function Documentation

int cgi_add_cookie (const char * name, const char * value, const char * max_age, const char * path, const char * domain, const int secure)

Send a cookie to the client.Parameters: name Cookie name

value Cookie value

max_age Cookie time life, in seconds. A value equal to 0 ( zero ) means to discard the cookie when the session is done.

path Cookie path at the server

domain Domain where cookie will work :)

secure Secure or not

See also: cgi_cookie_value

cgi_add_cookie('mycookie', 'mycookie value', 0, 0, 0, 0);

char* cgi_cookie_value (const char * cookie_name)

Gets cookie value.Like cgi_param(), cgi_cookie_value() returns the data contained in cookie_name cookie

Parameters: cookie_name Cookie name to get the value

Returns: The cookie value

CETTE PAGE DOCUMENTE AUSSI :