When I run var_dump($_COOKIE) I get the following output:
array(9) {
["wordpress_test_cookie"] => string(15)
"WP Cookie check"
["wp-postpass_299da1fd9cb967a93782c5397fa3a35e"] => string(34)
"$P$BXtsZ0i1qom3bqiFk4b9GeG8l9dFVG."
}
I want to check the contents of $_COOKIE for the existence of wp-postpass_ elements.
I tried:
if(strpos($_COOKIE,'wp-postpass_') === 0) { but this didn't work.
Where am I going wrong?
Thank you