Ver originalsession_start();
Ver originalfor ($i = 0; $i < 10; $i++) $cadena .= chr(rand(65, 90));
Ver original$_SESSION['captcha'] = md5($cadena);