You are here

function _captcha_update_captcha_session in CAPTCHA 6.2

Same name and namespace in other branches
  1. 8 captcha.inc \_captcha_update_captcha_session()
  2. 7 captcha.inc \_captcha_update_captcha_session()

Helper function for updating the solution in the CAPTCHA session table.

Parameters

$captcha_sid the CAPTCHA session ID to update.:

$solution the new solution to associate with the given CAPTCHA session.:

1 call to _captcha_update_captcha_session()
captcha_pre_render_process in ./captcha.module
Pre-render callback for additional processing of a CAPTCHA form element.

File

./captcha.inc, line 137
General CAPTCHA functionality and helper functions.

Code

function _captcha_update_captcha_session($captcha_sid, $solution) {
  db_query("UPDATE {captcha_sessions} SET timestamp=%d, solution='%s' WHERE csid=%d", time(), $solution, $captcha_sid);
}