getCookie( )
NAME
getCookie( ) - get the value of cookie
SYNOPSIS
char * getCookie
(
char * name
)
DESCRIPTION
this routine is to get the value of cookie last occur in cookie list
NOTE
if there are more than one same name items, this routine will retun the last one. If you want to get one by one please see getCookieNext( ) or getCookieByIndex( ).
RETURN
pointer to the value of parameter, or "" if not find
DESCRIPTION
This routine send cookie with HTTP header. Like other headers, cookies must be sent before any output flushed from your script (this is a protocol restriction, make sure CSP page buffer not flushed is OK).
The parameter expire, path, domain, secure is not need. You should make sure the last parameter is set to NULL, eg: