+
+ //char cookies[BUFSIZ];
+ //snprintf(cookies, BUFSIZ, "%s", getenv("COOKIE_STRING"));
+ //Log(LOGDEBUG, "ALL cookies %s", cookies); //mmmm
+
+ //Hack to get the nameless cookie only
+ // (works as long as browsers send the nameless cookie first...)
+ snprintf(control_key, CONTROL_KEY_BUFSIZ, "%s", getenv("COOKIE_STRING"));
+ // Ignore any other cookies if the nameless cookie is empty
+ for (int i = 0; i < CONTROL_KEY_BUFSIZ; ++i)
+ {
+ if (control_key[i] == ';')
+ {
+ control_key[i] = '\0';
+ break;
+ }
+ }
+