cgi_cookie_authority(3) determine the cookie authority for a

SYNOPSIS


#include <cgi/cgi.h>

char *cgi_cookie_authority (CGI *cgi, const char *host);

ARGUMENTS

cgi - a CGI struct
host - optional host to match against. If NULL, the function
will use the HTTP.Host HDF variable.

DESCRIPTION

cgi_cookie_authority will walk the CookieAuthority portion of the CGI HDF data set, and return the matching domain if it exists. The purpose of this is so that you set domain specific cookies. For instance, you might have CookieAuthority.0 = neotonic.com In which case, any webserver using a hostname ending in neotonic.com will generate a cookie authority of neotonic.com.

RETURN VALUE

None