diff -c 
*** src/modules/standard/mod_usertrack.c	Fri Jan  1 19:05:15 1999
--- src/modules/standard/mod_usertrack.c	Sun Mar 28 17:11:08 1999
***************
*** 111,116 ****
--- 111,117 ----
  typedef struct {
      int always;
      time_t expires;
+     char* name;
  }      cookie_log_state;
  
  /* Define this to allow post-2000 cookies. Cookies use two-digit dates,
***************
*** 185,197 ****
          /* Cookie with date; as strftime '%a, %d-%h-%y %H:%M:%S GMT' */
          new_cookie = ap_psprintf(r->pool,
                  "%s%s; path=/; expires=%s, %.2d-%s-%.2d %.2d:%.2d:%.2d GMT",
!                     COOKIE_NAME, cookiebuf, ap_day_snames[tms->tm_wday],
                      tms->tm_mday, ap_month_snames[tms->tm_mon],
  		    tms->tm_year % 100,
                      tms->tm_hour, tms->tm_min, tms->tm_sec);
      }
      else
! 	new_cookie = ap_psprintf(r->pool, "%s%s; path=/", COOKIE_NAME, cookiebuf);
  
      ap_table_setn(r->headers_out, "Set-Cookie", new_cookie);
      ap_table_setn(r->notes, "cookie", ap_pstrdup(r->pool, cookiebuf));   /* log first time */
--- 186,198 ----
          /* Cookie with date; as strftime '%a, %d-%h-%y %H:%M:%S GMT' */
          new_cookie = ap_psprintf(r->pool,
                  "%s%s; path=/; expires=%s, %.2d-%s-%.2d %.2d:%.2d:%.2d GMT",
!                     cls->name ? cls->name : COOKIE_NAME, cookiebuf, ap_day_snames[tms->tm_wday],
                      tms->tm_mday, ap_month_snames[tms->tm_mon],
  		    tms->tm_year % 100,
                      tms->tm_hour, tms->tm_min, tms->tm_sec);
      }
      else
! 	new_cookie = ap_psprintf(r->pool, "%s%s; path=/", cls->name ? cls->name : COOKIE_NAME, cookiebuf);
  
      ap_table_setn(r->headers_out, "Set-Cookie", new_cookie);
      ap_table_setn(r->notes, "cookie", ap_pstrdup(r->pool, cookiebuf));   /* log first time */
***************
*** 202,207 ****
--- 203,210 ----
  {
      int *enable = (int *) ap_get_module_config(r->per_dir_config,
                                              &usertrack_module);
+     cookie_log_state *cls = ap_get_module_config(r->server->module_config,
+                                               &usertrack_module);
      const char *cookie;
      char *value;
  
***************
*** 209,218 ****
          return DECLINED;
  
      if ((cookie = ap_table_get(r->headers_in, "Cookie")))
!         if ((value = strstr(cookie, COOKIE_NAME))) {
              char *cookiebuf, *cookieend;
  
!             value += strlen(COOKIE_NAME);
              cookiebuf = ap_pstrdup(r->pool, value);
              cookieend = strchr(cookiebuf, ';');
              if (cookieend)
--- 212,221 ----
          return DECLINED;
  
      if ((cookie = ap_table_get(r->headers_in, "Cookie")))
!         if ((value = strstr(cookie, cls->name ? cls->name : COOKIE_NAME))) {
              char *cookiebuf, *cookieend;
  
!             value += strlen(cls->name ? cls->name : COOKIE_NAME);
              cookiebuf = ap_pstrdup(r->pool, value);
              cookieend = strchr(cookiebuf, ';');
              if (cookieend)
***************
*** 233,238 ****
--- 236,242 ----
      (cookie_log_state *) ap_palloc(p, sizeof(cookie_log_state));
  
      cls->expires = 0;
+     cls->name = NULL;
  
      return (void *) cls;
  }
***************
*** 247,252 ****
--- 251,263 ----
      *c = arg;
      return NULL;
  }
+ static const char *set_cookie_name(cmd_parms *parms, void *dummy, char* arg)
+ {
+     cookie_log_state *cls = ap_get_module_config(parms->server->module_config,
+                                               &usertrack_module);
+     cls->name = ap_pstrcat(parms->pool,arg,"=",NULL);
+     return NULL;
+ }
  
  static const char *set_cookie_exp(cmd_parms *parms, void *dummy, const char *arg)
  {
***************
*** 320,325 ****
--- 331,338 ----
      "an expiry date code"},
      {"CookieTracking", set_cookie_enable, NULL, OR_FILEINFO, FLAG,
      "whether or not to enable cookies"},
+     {"CookieName", set_cookie_name, NULL, RSRC_CONF, TAKE1,
+     "name of the cookie to use"},
      {NULL}
  };
  
