Yii Framework Forum: Caching captchas? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Caching captchas? Rate Topic: -----

#1 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 06 May 2011 - 05:40 AM

Hi!

It seems that captcha generated by Yii (in default, auto-generated by yiic contact form of a base application) is somehow being cached. I don't know how and why, since both auto-generated application and my own project does not use any caching component. But the fact is that I'm having generated captcha code (text) changed after a few times refreshing page or after few e-mails sent. Not after every one - as I would expect.

Is there anyway to prevent it? I.e.: to have new captcha code generated each time user visits contact form (or re-visits it after sending e-mail)?

Thanks in advance,
Trejder
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 06 May 2011 - 06:23 AM

not sure... but could be this - http://www.yiiframew...estLimit-detail
Find more about me.... btw. Do you know your WAN IP?
3

#3 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 06 May 2011 - 07:25 AM

View Postmdomba, on 06 May 2011 - 06:23 AM, said:

not sure... but could be this - http://www.yiiframew...estLimit-detail

Brilliant (+1)! :] And thank you! :]
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users