captcha problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

captcha problem

Post by gurjit »

Hi

I'm using this script

http://www.white-hat-web-design.co.uk/a ... aptcha.php


What has happened is that it works fine on domain:

mydomain.co.uk

where all the form code exists.

I have another domain mydomain2.co.uk, which I frame forward to mydomain.co.uk. When I call the forms and click the submit, the confirm code does not work, it keeps asking to reconfirm the code.

I know this is because of sessions across domains. I am using PHP 4.

Any ideas what I can do?
User avatar
paqman
Forum Contributor
Posts: 125
Joined: Sun Nov 14, 2004 7:41 pm
Location: Burnaby, BC, Canada

Re: captcha problem

Post by paqman »

As far as I know (not extremely far), browsers use sessions per domain only. Your two domains will not be able to communicate through sessions. If they are on the same server, theoretically you could find the session data, but that would be complicated and not a good use of your time. Why not just make a copy of the script for your second domain?
Post Reply