CodeIgniter Forums
CI bundled captcha plugin - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI bundled captcha plugin (/showthread.php?tid=12384)



CI bundled captcha plugin - El Forum - 10-16-2008

[eluser]EEssam[/eluser]
Hi,

I'm wondering what's the benefit of saving the image to disk instead of generating it on the fly and set a session?

And even worse, creating a captcha database table to track it.

It looks very stupid to me but I'm sure that's because I don't get the point.

Please explain.


CI bundled captcha plugin - El Forum - 10-17-2008

[eluser]EEssam[/eluser]
What? Was this plugin coded by a beginner?


CI bundled captcha plugin - El Forum - 10-18-2008

[eluser]Pascal Kriete[/eluser]
[quote author="EEssam" date="1224236965"]And even worse, creating a captcha database table to track it.[/quote]
By default, CodeIgniter stores it's session in a cookie. So if you store the captcha value in the session, you're sending a clear text version to the user.

The image is generated on the fly - it's done on the same request because of the above reason. Doing it dynamically with a new request really wouldn't change the performance. It'll save you 5kb.

Quote:What? Was this plugin coded by a beginner?
Quite rude, and certainly not the best way to get an answer in this community.


CI bundled captcha plugin - El Forum - 10-18-2008

[eluser]EEssam[/eluser]
Sorry, I didn't mean to be rude. Thanks for your clarification.