Actually, I’m using the current SVN.
This code in CAPTCHA is not getting the $_SESSION variable reliably (it often holds an older value when checked):
$_SESSION['veriword'] = $this->word;
If I do this, it still doesn’t work every time:
while ($_SESSION['veriword'] != $this->word) {
$_SESSION['veriword'] = $this->word;
}
I thought the verification code was getting info from a different session, but the session ID never changes.
I tried tossing in a couple of session_start() calls but it was no help.
Is Beta-5 doing something different with sessions?
Any suggestions appreciated.
[Update] Man, I hate problems like this. CAPTCHA works perfectly for the Manager login, so the problem is not there.
SPForm will get the correct session variable about 2/3 of the time. It will work perfectly 4 or 5 times in a row, then get an old value for the session variable once or twice, then work again for a few tries, then fail again, and so on. As far as I can tell, the relevant code is identical to that for the Manager login.
Sometimes, the session variable retrieved is the previous one, sometimes it’s the one before that -- it’s never empty.
If I click on the image to get a new one, the form always works. Uggghh.