Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: CVS

cvs commit: apache/src mod_cookies.c

 

 

Apache cvs RSS feed   Index | Next | Previous | View Threaded


mjc at hyperreal

May 24, 1996, 6:10 AM

Post #1 of 1 (128 views)
Permalink
cvs commit: apache/src mod_cookies.c

mjc 96/05/24 06:10:15

Modified: src mod_cookies.c
Log:
Improve the description of what the Cookie module does and how it does
it.

Revision Changes Path
1.9 +29 -16 apache/src/mod_cookies.c

Index: mod_cookies.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_cookies.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C3 -r1.8 -r1.9
*** mod_cookies.c 1996/04/22 21:50:50 1.8
--- mod_cookies.c 1996/05/24 13:10:14 1.9
***************
*** 52,90 ****
*/


! /* Client-Side State (Cookies) Fixup Module
*
! * This is a module for Apache for tracking users paths through a site
! * using the Client-Side State (Cookie) protocol developed by Netscape.
* It is known to work on Netscape browsers, Microsoft Internet
* Explorer and others currently being developed.
*
! * Function:
*
! * On each Web request we look for a Cookie: header
! * If we don't find one then the user hasn't been to this site this session
! * so send a Set-Cookie: header out with the request
! * Future requests from the same client should keep the same Cookie line.
*
* The cookie and request are logged to a file. Use the directive
* "CookieLog somefilename" in one of the config files to enable the Cookie
! * module.
*
! * Note:
! * This code doesn't log the initial transaction (the one that created
! * the cookie to start with).
*
! * Mark Cox, mark [at] ukweb, 6 July 95
*
* 6.12.95 MJC Now be more friendly. Allow our cookies to overlap with
! * others the site may be using. Use a more descriptive cookie name.
*
* 18.3.96 MJC Generate cookies for EVERY request no matter what the
! * browser.
*
* 96/03/31 -JimC Allow the log to be sent to a pipe. Copies the relevant
! * code from mod_log_agent.c.
*
*/

#include "httpd.h"
--- 52,103 ----
*/


! /* User Tracking Module
*
! * This Apache module is designed to track users paths through a site.
! * It uses the client-side state ("Cookie") protocol developed by Netscape.
* It is known to work on Netscape browsers, Microsoft Internet
* Explorer and others currently being developed.
*
! * Each time a page is requested we look to see if the browser is sending
! * us a Cookie: header that we previously generated.
*
! * If we don't find one then the user hasn't been to this site since
! * starting their browser or their browser doesn't support cookies. So
! * we generate a unique Cookie for the transaction and send it back to
! * the browser (via a "Set-Cookie" header)
! * Future requests from the same browser should keep the same Cookie line.
*
* The cookie and request are logged to a file. Use the directive
* "CookieLog somefilename" in one of the config files to enable the Cookie
! * module. By matching up all the requests with the same cookie you can
! * work out exactly what path a user took through your site.
*
! * Notes:
! * 1. This code doesn't log the initial transaction (the one that created
! * the cookie to start with). If it did then the cookie log file would
! * be bigger than a normal access log.
! * 2. This module has been designed to not interfere with other Cookies
! * your site may be using; just avoid sending out cookies with
! * the name "Apache=" or things will get confused.
! * 3. If you want you can modify the Set-Cookie line so that the Cookie
! * never expires. You would then get the same Cookie each time the
! * user revisits your site.
*
! * Mark Cox, mark [at] ukweb, http://www.ukweb.com/~mark/, 6 July 95
*
* 6.12.95 MJC Now be more friendly. Allow our cookies to overlap with
! * others the site may be using. Use a more descriptive
! * cookie name.
*
* 18.3.96 MJC Generate cookies for EVERY request no matter what the
! * browser. We never know when a new browser writer will
! * add cookie support.
*
* 96/03/31 -JimC Allow the log to be sent to a pipe. Copies the relevant
! * code from mod_log_agent.c.
*
+ * 24.5.96 MJC Improved documentation after receiving comments from users
*/

#include "httpd.h"

Apache cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.