httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Degenhardt <...@mp3.com>
Subject [PATCH] mod_rewrite: set cookies
Date Mon, 17 Jun 2002 00:34:29 GMT
We've been using this patch at mp3.com for a while, I figured I'd
forward-port it to apache 2.0 and send it to you folks.  It duplicates
the functionality of the [E=var:val] but sets cookies.  A very basic
example would be to set a cookie called 'lastvisited' containing the
uri of the last page you visited on the site:

RewriteRule (.*) - [CO=lastvisited:$1:.mp3.com]

This could be used in conjuction with the mod_log_config
'%{lastvisited}C' directive for a more robust referrer.

I can supply a patch against 1.3.X if this is deemed a useful feature.

-bmd

Mime
View raw message