Poster of Linux kernelThe best gift for a Linux geek
Cookies

Cookies

Section: C Library Functions (3) Updated: 13 Mar 2003
Local index Up
 

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


 

Index

NAME
Functions
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)
char* cgi_cookie_value (const char * cookie_name)

This document was created by man2html, using the manual pages.
Time: 21:43:18 GMT, April 16, 2011