Home > invalid recaptcha > invalid-request-cookie error

Invalid-request-cookie Error

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you

What Does Invalid Recaptcha Mean

might have Meta Discuss the workings and policies of this site invalid request cookie google recaptcha About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or

Invalid Recaptcha Response

posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of recaptcha invalid-request-cookie 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Google reCaptcha says:invalid-request-cookie up vote 4 down vote favorite this is my first time in using recaptcha on my website. I'm using PHP API to validate the recaptcha, it keeps saying invalid-request-cookie I found out on different recaptcha verification failed forum that www.example.com is different with example.com, so I register my site again without www , but still it is not working.. When I verify the recaptcha_response_field and recaptcha_challenge_field the values are correct. here is the captcha checker: require_once(recaptchalib.php'); $publickey = "not displayed"; //for security $privatekey = "not displayed"; //for security $error = null; if( $_POST ) { $arr = array('a' => $_POST['task'], 'b' => $_POST['recaptcha_challenge_field'], 'c' => $_POST['recaptcha_response_field']); if( trim($arr['a']) == 'captcha' ) { $resp = null; $error = null; $captcha_result = 'success'; $resp = recaptcha_check_answer( $privatekey, $_SERVER["REMOTE_ADDR"], $arr['b'], $arr['c'] ); if( $resp->error ){ $captcha_result = 'fail'; } echo $captcha_result; } } here is the HTML code: