cgi_cookie_value

Langue: en

Version: 287875 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

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

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);
  
 
 
 
 

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