Received: (qmail 25309 invoked by uid 501); 20 Jun 2001 10:36:27 -0000 Message-Id: <20010620103627.25308.qmail@apache.org> Date: 20 Jun 2001 10:36:27 -0000 From: Vlad Khokholkov Reply-To: vlad@email.com To: submit@bugz.apache.org Subject: mod_usertrack fails to set cookie when redirecting with mod_rewrite. X-Send-Pr-Version: 3.110 >Number: 7893 >Category: mod_usertrack >Synopsis: mod_usertrack fails to set cookie when redirecting with mod_rewrite. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: apache >Arrival-Date: Wed Jun 20 03:40:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: vlad@email.com >Release: 1.3.19 >Organization: apache >Environment: FreeBSD 4.2 (but i guess this is irrelevant.) >Description: ServerName pipelogtest.altlist.com DocumentRoot /usr/home/vlad/html CookieTracking on RewriteMap urlesc int:unescape RewriteEngine on RewriteRule ^.* /entry.html [L,R,E=hit_type:oldin this is a small fragment of the virtual host. mod_usertrack seems to be working with http requests on existing files, but when you redirect request using mod_rewrite, or if request returns a 404 or other errors, the cookie is not set. >How-To-Repeat: http://pipelogtest.altlist.com/ - cookie works http://pipelogtest.altlist.com/cgi-bin/enter.cgi?bla - does not work >Fix: not experienced enough with writing apache module, but i guess there should be addheader function for apache modules, that will add header to a response headers table, then pass the request to next module... right now the module just sends the cookie header, ... well i am just speculating, you guys have to look into it yourself. >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]