: How do you match a specific cookie value with Apache 2.4 statement? I am not able to figure out why the following doesn't match: <If %{HTTP_COOKIE} == 'XDEBUG_SESSION=leho'"> I'm setting
I am not able to figure out why the following doesn't match:
<If %{HTTP_COOKIE} == 'XDEBUG_SESSION=leho'">
I'm setting a php_value inside the matching If. I know that part works because this seems to match something
%{HTTP_COOKIE} =~ /leho/
More posts by @Speyer207
1 Comments
Sorted by latest first Latest Oldest Best
HTTP_COOKIE is a semi-colon delimited list of all the cookies that are set. Your == test would only work if your cookie were the only one set. Instead, I would try this regular expression match in the <If> directive:
<If "%{HTTP_COOKIE} =~ /XDEBUG_SESSION=leho/">
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.