Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide


The util_cookie_find function finds a specific cookie in a cookie string and returns its value.


char *util_cookie_find(char *cookie, char *name);


If successful, returns a pointer to the NULL-terminated value of the cookie. Otherwise, returns NULL. This function modifies the cookie string parameter by NULL terminating the name and value.


char *cookie is the value of the Cookie: request header.

char *name is the name of the cookie whose value is to be retrieved.