how to make this poll run using cookies

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
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

how to make this poll run using cookies

Post by rami »

well i am using a poll script for site http://www.xyz.com file uploaded in this site...
i have another site http://www.abc.com which is redirected to http://www.xyz.com ..but there is not physical redirection but the http://www.xyz.com is masked by server .ie in address bar http://www.abc.com appears but actually the site loading is http://www.xyz.com


my problem is from http://www.abc.com the user can vote any numbers of time in poll ..i am using cookie protection and i think it is taking the url http://www.xyz.com while writing cookie(the poll files are in http://www.xyz.com) so how can i write http://www.abc.com also to cookie of poll so that the user surfing from http://www.abc.com wont be allowed to vote multiple times...

is writing two url or making single cookie valid for 2 sites allowed or can be done...?
if yes how...

thanks
Post Reply