Hi,

I'm attempting to do the above with mod_headers and mod_setenvif.
unsuccessfully.

SetEnvIfNoCase Set-Cookie "JSESSIONID=(\S*);\s*Path=$"
jsessionidBlankPath=$1 blankCookiePath
Header set Set-Cookie "JSESSIONID=%{jsessionidBlankPath}e; Path=/"
env=blankCookiePath


The first rule is supposed to set a couple variables when a JSESSIONID
cookie is set with an empty path.

jsessionidBlankPath will be set to the JSESSIONID value.
blankCookiePath is set

I'm pretty sure the regex should match.

The second rule replaces the Set-Cookie header when blankCookiePath is set.

What am I doing wrong?

Thanks.

Reply via email to