Re: PEAR Template ITX and CAPTCHA -- Conflicts
| From: | Mark Wiesemann | Date: | Wed, 20 Sep 2006 11:07:18 +0000 |
| Subject: | Re: PEAR Template ITX and CAPTCHA -- Conflicts | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25182@lists.php.net to get a copy of this message | ||
Louie Miranda wrote:
> Im a bit confused here, not on the functionality. But, i think it has
> conflicts, when i set the session for CAPTCHA.
>
> // Get CAPTCHA secret passphrase
> $_SESSION['phrase'] = $c->getPhrase();
>
> When i do this and verify..
>
> echo
> $_SESSION['phrase']."||".$_POST['phrase']."<br>";
>
> on the other page. The session i;ve registered against the _POST. Its
> changing everytime.
The changing phrase is expected and also important for security,
especially because of a small bug in the CAPTCHA element that I've
already reported to Philippe. Please also remember that the element is
not yet an official PEAR package.
Anyway, I didn't really get what your problem is. It is however
important to use the right order of the following three steps:
- include QF
- include the QF element
- session_start()
Please try to rephrase your problem if this does not help you.
Regards,
Mark