Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Programming Languages
PHP
Issue with $_COOKIE
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="DonovanTheDeveloper, post: 5168452, member: 87289"] Hello! I'm experiencing a new issue--when I use [B]$_COOKIE["yandex_login"][/B] (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". [CODE=php]<?php $word = "mail.(my domain)"; $mystring = $_COOKIE["yandex_login"]; if(strpos($mystring, $word) !== false){ echo "Word Found!"; } else{ echo "Word Not Found!"; } ?>[/CODE] The cookie seems to be pushed from domain [B].yandex.com[/B] and the path [B]/[/B] How can I get the value of the cookie if $_COOKIE isn't working? Is there a problem with my code? [/QUOTE]
Verification
Post reply
Forums
Programming Languages
PHP
Issue with $_COOKIE
Top