Reply to topic
Captcha Cache problem
Seamus


Joined: 11 Apr 2008
Posts: 8
Reply with quote
Hello Everyone,
I'm pretty new to CF so please bear with my ignorance...

I'm trying to use captcha to verify user comments within a cfdiv.
The problem I have is that if I give the cfimage tag a static destination ("captcha.jpg"), then the image gets cached and doesn't update to reflect the new verification string.

Now, I could give it a dynamic name, but then I'd wind up with a folder full of captcha images.
I though I could just leave out the destination attribute and use the tmpCache folder, but it's a shared host so no can do.

So, unless someone has any other ideas, I guess what I need to know is how to create my own temp folder that will empty itself out, like the tmpcache folder.

Any ideas?
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 531
Location: Harrisburg, PA
Reply with quote
You don't need to worry about writing the captcha to disk. CF8's built in captcha functionality via <cfimage> can stream the captcha image right the the browser, so there is no storage necessary.

Ray Camden has a good write up and example code you can use.

http://www.coldfusionjedi.com/index.cfm/2008/3/29/Quick-and-Dirty-ColdFusion-8-CAPTCHA-Guide
Ennio


Joined: 17 Nov 2006
Posts: 96
Location: Scotch Plains, NJ
Reply with quote
The CF8 captcha is great, but make sure you delete the images later, otherwise you will have all the captcha files in your folder.
Seamus


Joined: 11 Apr 2008
Posts: 8
Reply with quote
Thanks. Looks like I just needed my sandbox settings adjusted, but I didn't explain the problem to support very well the first time.
Captcha Cache problem
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic