invalid-request-cookie Error

588 views
Skip to first unread message

James

unread,
Apr 8, 2011, 1:44:01 PM4/8/11
to reCAPTCHA
I'm using the reCaptcha ColdFusion API (http://
recaptcha.riaforge.org/) in a web application. We have ColdFusion 7.
The reCaptcha seems to be working correctly most of the time for me,
but when I am looking at the user logs, it looks like about 10% of the
users are getting the invalid-request-cookie Error.


The reCaptcha api docs says... invalid-request-cookie error= The
challenge parameter of the verify script was incorrect.

My question is why would it be working with some requests but not
others? Could this be browser or OS specific? I've tried it on IE 8,
Firefox and my iphone and it seems to work fine all the time.

Any thoughts would be greatly appreciated.

Thanks,

James

James

unread,
Apr 11, 2011, 12:23:45 PM4/11/11
to reCAPTCHA
I figured out what the problem was. For users who are viewing the
captcha who do not have JavaScript enabled, which it looks like a lot
of mobile devices, they are not doing the verification process
correctly.

How the ColdFusion api works without JavaScript is that the user is
supposed to type in the two words into the recaptcha text box and
click the "I am human." button. After they are verified, they get a
long verification key that looks something like this:
"03AHJ_VuuRXsEkIf6pdyWE6nuI9PGZr2wNnuWI76_y1k3598OkrzehRmfSww0b5z3ZFFocKDoA9IPdfPdhwy1nMmli48pM..."

The user is supposed to copy that key and paste it into a second box
and then hit the submit button on the actual form.

What I am seeing is that 5% of the time, users are not submitting the
entire verification code, probably because it is hard to copy and
paste from a mobile device. About 45% of the time, they don't copy and
paste the verification string, they just submit the form with a blank
verification string field. About 45% of the time, they are just
retyping the two recaptcha words in the verification string box. And,
about 5% of the time, they are entering the regular form data in the
verification box.

So, in summary, if the user isn't submitting the whole verification
string correctly, the ColdFusion API throws a "invalid-request-cookie"
error. I'm going to build another help page for non-javascript users
who need help with this form.

-- James
Reply all
Reply to author
Forward
0 new messages