[eluser]Molchy[/eluser]
[quote author="loca" date="1307700102"]hi all,
I just use captcha helper for create a captcha image.
I use code as in CI UserGuide, here are some of them:
Code:
$vals = array(
'img_path' => './captcha/',
'img_url' => base_url().'captcha/',
'expiration' => 15
);
$cap = create_captcha($vals);
I set expiration as show above, but the captcha image in my captcha folder not be removed automatically after 15 seconds. And in database, I have the same problem.
Code:
$expiration = time()-15; // Two hour limit
$this->db->query("DELETE FROM captcha WHERE captcha_time < ".$expiration);
[/quote]
I think this is wrong: $expiration = time()-15; || database time is in different format
Regarding image on server

i suggest checking ftp folder permission.