httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Degenhardt <>
Subject [PATCH] mod_rewrite: set cookies
Date Mon, 17 Jun 2002 00:34:29 GMT
We've been using this patch at 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:$]

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.


View raw message