- Joined
- Apr 29, 2021
- Messages
- 4
- Reaction score
- 0
Hello! I'm experiencing a new issue--when I use $_COOKIE["yandex_login"] (the cookie that the API sends to the site which contains the email), it won't work. The code below is supposed to check if the email address contains my domain. It should be reporting "Word Found".
The cookie seems to be pushed from domain .yandex.com and the path /
How can I get the value of the cookie if $_COOKIE isn't working? Is there a problem with my code?
PHP:
<?php
$word = "mail.(my domain)";
$mystring = $_COOKIE["yandex_login"];
if(strpos($mystring, $word) !== false){
echo "Word Found!";
} else{
echo "Word Not Found!";
}
?>
The cookie seems to be pushed from domain .yandex.com and the path /
How can I get the value of the cookie if $_COOKIE isn't working? Is there a problem with my code?