Closed GoogleCodeExporter closed 8 years ago
Sorry, submitted by mistake.
Browsers and their versions are listed at the top.*
Additional information:
ultimately, i've been able to handle the problem with the help of AJAX session
refresh separate from .php image file, but i had to make considerable changes
in the
original code.
Thank you.
Original comment by free.goo...@gmail.com
on 26 Jun 2009 at 6:42
I think that is an PHP feature: the session data is stored at end of the script
ejecution.
You should use different session name for each captcha, for example:
$captcha->session_var = 'captcha_'.uniqid();
do you have a sample code with the problem?
Original comment by joserodr...@gmail.com
on 29 Jun 2009 at 4:47
I have inspected the problem more detailed and found out that it was due to
image
cache - session was rewritten but the image was the cached one.
So, the best was out was to:
1. Remove image source from html example: <img src="captcha/captcha.php"
id="captcha"> -> <img id="captcha">
2. Load image via javascript instead: document.getElementById("captcha").src =
"captcha/captcha.php?" + Math.random();
Thank you!
Original comment by free.goo...@gmail.com
on 30 Jun 2009 at 9:41
The PHP scripts send an Expires header that prevent this issue.
Your apache server has the mod_cache or mod_expires module active ????
Original comment by joserodr...@gmail.com
on 2 Jul 2009 at 3:54
No, none of them is installed.
Perhaps, browser issue.
Original comment by free.goo...@gmail.com
on 3 Jul 2009 at 5:46
no further information
Original comment by joserodr...@gmail.com
on 13 May 2010 at 4:11
If you have ySlow running in FF, the image is loaded twice and your code is not
accepted by the captcha.
Original comment by MissSass...@googlemail.com
on 14 Jun 2011 at 3:03
Original issue reported on code.google.com by
free.goo...@gmail.com
on 26 Jun 2009 at 6:38