This is a migrated thread and some comments may be shown as answers.

Captcha Audio Problem - Initial Page Load

3 Answers 87 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 29 Nov 2010, 05:04 PM

Hello,

 

I’m having an issue in my application with the Captcha audio.  When you first navigate to the page with the Captcha and you click on the “Get Audio Code” link, the audio doesn’t work. 

 

However, when you click the “Generate New Image” link and then click “Get Audio Code” link it works.

Thanks

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 30 Nov 2010, 01:14 PM
Hello Kyle,

This might be a result of a JavaScript exception or the respective IE browser does not have installed the needed QuickTime plug-in to play the audio code. I tested a sample project (attached) to see if the problem can be reproduced locally, but everything was OK.
Could you please provide a test project that demonstrates the issue? You could also provide a Live URL where we can observe the issue.

Sincerely yours,
Pero
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Kyle
Top achievements
Rank 1
answered on 30 Nov 2010, 07:11 PM
Hi Pero,

I've figured out why the audio wasn't working on initial load.  It has to do with this line:

ImageStorageLocation = CaptchaImageStorage.Session;

I think initially it's set to "Cache" instead of "Session" but we're in a load balanced environment and we thought it might be better to do it this way.  Obviously it's causing problems, would it be detrimental to use "Cache"?

Thx
0
Pero
Telerik team
answered on 01 Dec 2010, 01:41 PM
Hello Kyle,

If the RadCaptcha is used in Web Farm or Web Garden environment, then you should use the Session to store the CaptchaImage. Usually, each of the servers or the worker processes, has independent Cache (i.e. not shared among the other servers/processes), and the image will be missing on the control.
So, store the CaptchaImage in the Session, and make sure the host environment uses out of process Session state.

Kind regards,
Pero
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Captcha
Asked by
Kyle
Top achievements
Rank 1
Answers by
Pero
Telerik team
Kyle
Top achievements
Rank 1
Share this question
or