mod_usertrack.c revision 30c289e6bc6d28d210b21edd800ab2cfc78a8381
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen/* ====================================================================
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * The Apache Software License, Version 1.1
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * Copyright (c) 2000 The Apache Software Foundation. All rights
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * Redistribution and use in source and binary forms, with or without
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * modification, are permitted provided that the following conditions
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * 1. Redistributions of source code must retain the above copyright
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * notice, this list of conditions and the following disclaimer.
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * 2. Redistributions in binary form must reproduce the above copyright
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * notice, this list of conditions and the following disclaimer in
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * the documentation and/or other materials provided with the
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * distribution.
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * 3. The end-user documentation included with the redistribution,
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * if any, must include the following acknowledgment:
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * "This product includes software developed by the
11c3a36649e5e5e77db499c92f3cdcbd619efd3aThomas Hindoe Paaboel Andersen * Apache Software Foundation (http://www.apache.org/)."
11c3a36649e5e5e77db499c92f3cdcbd619efd3aThomas Hindoe Paaboel Andersen * Alternately, this acknowledgment may appear in the software itself,
cb57dd41595adddb08095298bb1ed258c8ea4877Tom Gundersen * if and wherever such third-party acknowledgments normally appear.
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * 4. The names "Apache" and "Apache Software Foundation" must
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * not be used to endorse or promote products derived from this
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * software without prior written permission. For written
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * permission, please contact apache@apache.org.
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * 5. Products derived from this software may not be called "Apache",
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * nor may "Apache" appear in their name, without prior written
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * permission of the Apache Software Foundation.
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
cb57dd41595adddb08095298bb1ed258c8ea4877Tom Gundersen * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
cb57dd41595adddb08095298bb1ed258c8ea4877Tom Gundersen * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
cb57dd41595adddb08095298bb1ed258c8ea4877Tom Gundersen * SUCH DAMAGE.
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * ====================================================================
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * This software consists of voluntary contributions made by many
5ffa42cb8028833440040c2e240e0d788f11c112Tom Gundersen * individuals on behalf of the Apache Software Foundation. For more
/* User Tracking Module (Was mod_cookies.c)
* This file replaces mod_cookies.c
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_request.h"
int always;
int expires;
int enabled;
char *cookie_name;
char *new_cookie;
const char *cookie;
char *value;
return DECLINED;
if (cookieend)
make_cookie(r);
return (void *) cls;
return dcfg;
return NULL;
char *word;
return NULL;
while (word[0]) {
if (!word[0])
factor = 0;
return NULL;
return NULL;
{NULL}
static void register_hooks(void)