(Un)setting a cookie in mod_rewrite

Go To StackoverFlow.com


I'd like to remove a cookie using mod_rewrite but unfortunately the subsequent request (Chrome,FF,Safari) keeps the old cookie value.

Doku ( http://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_co ) says:


So my RewriteRule is

RewriteRule .* target/ [R=301,CO=NAME:INVALID:.dev.local:-1]

Any glues what's wrong?


2012-04-03 20:08
by pagid


This finally worked for me:

RewriteRule .* target/ [R=301,CO=NAME:INVALID:;:-1]

Hope it helps someone.

2012-04-03 20:54
by pagid