In my .htaccess files:
For proper Cookies I use this, that's OK if I check whether there exists a cookie.
RewriteCond %{HTTP_COOKIE} (my\_cookie) [NC]
But when I tried to check for zero values and use these choices, it fails to match cases:
RewriteCond %{HTTP_COOKIE} ^.*my\_cookie=0.*$ [NC]
RewriteCond %{HTTP_COOKIE} my\_cookie=0 [NC]
RewriteCond %{HTTP_COOKIE} (my\_cookie=0) [NC]
When I make print_r ( $_COOKIE );
I get this:
Array
(
[analytics] => true
[CakeCookie] => Array
(
[my_cookie] => 0
[newuser] => 1
)
)
How can I check the cookie value for this case?