The following code implements the functionality to check whether
a CAPTCHA was solved correctly or not. for this, the
CAPTCHA's phrase is stored in a session variable to
retain this information between requests. It is
important to unset the session after solving the
CAPTCHA to avoid the reuse of the session ID.