func: void cgiHeaderCookieSetInteger(char *name, int value, int char *path, char *domain) char svalue [ 256 ] ; sprintf ( svalue , "%d" , value ); cgiHeaderCookieSetString ( name , svalue , secondsToLive , path , domain ); void cgiHeaderCookieSetString(char *name, char *value, int char *path, char *domain) then = now + secondsToLive; gt = gmtime ( & then ); fprintf ( cgiOut , "Set-Cookie: %s=%s; domain=%s; expires=%s, %02d-%s-%04d %02d:%02d:%02d GMT; path=%s\r\n" , name , value , domain , days [ gt -> tm_wday ] , gt -> tm_mday , months [ gt -> tm_mon ] , gt -> tm_year + 1900 , gt -> tm_hour , gt -> tm_min , gt -> tm_sec , path ); 