![]() |
| Captcha Cache problem |
|
Seamus
|
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
|
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
|
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
|
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 |
|
||
|


