I have problems with captcha: the code is not changing or the captcha image is not displayed every time on the page - I have to refresh 2-3 times the page to load the captch image.
I have a model Article and a contact form widget (a contact form with captcha).
On every article page i display the contact form but the captcha code is the same or the captcha image is not displayed.
The actions method of the Article controller is :
public function actions()
{
return array(
// captcha action renders the CAPTCHA image displayed on the contact page
'captcha'=>array(
'class'=>'CCaptchaAction',
'backColor'=>0xFFFFFF,
),
);
}
My problem is that the capcha code is not changing no matter how many times I refresh the page. Another problem is that the picture is displayed on the 3rd refresh.
I have problems with CCaptcha too. When register form or contact form (those with captcha) are loaded the captcha is not displayed at all. When I click reload image link sometimes only one letter is displayed and sometimes nothing is displayed. And sometimes I have to click reload image link several times to display the captcha image.