I get this error:

CAPTCHA validation error: unknown CAPTCHA session ID. Contact the site administrator if this problem persists.

Comments

AlexisWilke’s picture

That's a CAPTCHA error, not specific to the Hidden CAPTCHA.

The main reason why it happens is because the session times out and when the CAPTCHA is finally used, it's too late.

My solution in captcha/captcha.module is to make the time longer... Replace the 84600 below with a larger number (i.e. 84600 * 7 for 1 week). Try that and see if it fixes the problem. It appeared for me because I use Boost.

/**
 * Implementation of hook_cron().
 *
 * Remove old entries from captcha_sessions table.
 */
function captcha_cron() {
  // remove challenges older than 1 day
  db_query('DELETE FROM {captcha_sessions} WHERE timestamp < %d', time() - 84600);
}

Thank you.
Alexis Wilke

Liam Morland’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Drupal 6 is no longer supported. If this issue exists in Drupal 7, please re-open and provide details.