You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mika Jaenson <mi...@arbetsformedlingen.se> on 2015/01/26 13:23:27 UTC

[users@httpd] Using ":" in setting a cookie with mod_rewrite

Hi!

I have an issue with setting a URL value in a cookie using mod_rewrite. The value includes a ":" and I cannot find a way to escape that character. This is what I want to do:

   RewriteRule / - [co=AMV_LOGIN _COOKIE:https://%{SERVER_NAME}%{REQUEST_URI}:.af.se:] where the wanted cookie value is "https://%{SERVER_NAME}%{REQUEST_URI}"

Searching the archives I find the bug report 47241, which seems to discuss the exact same problem. The mail thread ends with a proposed patch, but I can't find any info if this patch is included in a release or not.

Anyone have info on this, or another solution or workaround?

Mvh/BR Mika
Mika Jaenson