Welcome Guest, Not a member yet? Register   Sign In
CI bundled captcha plugin
#1

[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.
#2

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

[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.
#4

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




Theme © iAndrew 2016 - Forum software by © MyBB