Forum Moderators: coopster
Now though the client has had people in internet cafe's having problems using the form, I am asumming because of the high security/privacy settings the internet cafe's implement stopping the sessions that control the captcha being blocked.
Is this likely to be the case and if so how do I get around this?
the client expects quite a few people to be trying to access from internet cafes and there is a good chance a good percentage will have these high security/privacy settings.
is there a way i can offer protection to the form from abuse while still allowing all people to fill in the form without their settings being an issue?
Jay
What kind of problem are people having? The PHP session is handled mostly on the server and it just sets a cookie on the browser to keep track of the session ID, and all the internet cafes I've used allowed cookies otherwise many sites won't work at all like mail.yahoo and gmail etc. It'll help to know how your captcha script works and what kind of problem people are having, but if you just want to maintain the session without using cookies, this is how I did it:
In the HTML form, I add a hidden field:
<input type="hidden" name="cookie" value="<?=session_id()?>">
Then at the beginning of my PHP script (the one called by the form), I add these statements:
if($_POST['cookie'] && $_POST['cookie']!= session_id()) {
session_id($_POST['cookie']);
}
session_start();
This will retrieve the right session on subsequent calls to the form handler even if the cookie is not set. But be careful, some scripts use cookies other than the session ID and you'll need to incorporate those in the form as well.
Other than that, maybe your captcha image is being cached and people are seeing the one from a previous session?