Print Page | Close Window

CAPTCHA keeps stating it was not entered correctly

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25128
Printed Date: 28 March 2026 at 6:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CAPTCHA keeps stating it was not entered correctly
Posted By: dcaya
Subject: CAPTCHA keeps stating it was not entered correctly
Date Posted: 10 January 2008 at 4:14pm

I'm testing CAPTCHA before buying the license. I entered the code as instructed to the form & processor page.

The only difference I see is on my processor form but I'm not sure if this has any impact:
 
<%@ Language="VBScript"%>
<!--#include file="stdincl.vbs"-->
<!-- Include file for CAPTCHA form processing -->
<!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
 <%
'If CAPTCHA is entered correctly run the following code
If blnCAPTCHAcodeCorrect = True Then
       'Place code here that is to run if CAPTCHA is entered correctly
       Response.Write("CAPTCHA code is correct")

'If CAPTCHA is NOT entered correctly run the following code
ElseIf blnCAPTCHAcodeCorrect = False Then
       'Place code here that is to run if CAPTCHA is NOT entered correctly
       Response.Write("CAPTCHA code is NOT correct")
End If
%>
 
 
Each time, the processor page tells me that the code was not entered properly even though I've entered the correct one. What am I doing wrong here?
 
I didn't tell it to redirect yet because I want to make sure it's working first. I can't figure out why it keeps stating that the code wasn't entered correctly when I did enter it several times. The example files run fine.
 
 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 10 January 2008 at 5:07pm
Make sure that session variables are working correctly on your site.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dcaya
Date Posted: 10 January 2008 at 5:12pm
Sorry - sort of new to this. Where would I check this?


Posted By: WebWiz-Bruce
Date Posted: 10 January 2008 at 5:39pm
Probably the simplest way is to place at the top just before the CAPTCHA_process include the following:-

<% =  Session("strSecurityCode") %>

This will display if there is anything in the session variable which is passed across from the previous page displaying the CAPTCHA code.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: NWilson
Date Posted: 16 August 2008 at 10:17pm
I have this exact problem too. Keeps stating the captcha code was entered wrongly. I followed the advise above and I can see that a different code is being passed through (I guess it is rembering an old code). I don't know anything about session variables. How do I solve this?


Posted By: WebWiz-Bruce
Date Posted: 17 August 2008 at 6:27am
Sounds like you could be using load balanced web servers or multi worker process for the website. Some things that can stop ASP Sessions from working are:-
  • Fault on the server or dodgy site coursing the application pool to recycle
  • Load Balanced web servers
  • Multiple worker processes in the application pool
  • Application pool recycling to often due to incorrect settings
  • ASP application on the website uses 'Session.Abandon'


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net