Multiple processes

See all posts See thread Reply

Re: Multiple processes new!
by colin, 17 years, 9 months ago
Look at the code!

Basically, the source of the image is a PHP script which generates and output the CAPTCHA image (and also set the CAPTCHA phrase into the session). I add a random value to the URL to make sure that the CAPTCHA is generated each time and is not taken from the cache.

See:
CAPTCHA image
Replace ### by javascript in the code above.

The file captcha.php is very simple:
session_start();
$captcha = new CaptchaNumbersV2(5);
$captcha->display();
$_SESSION['captcha'] = $captcha->getString();
exit();
Reply