Forum Moderators: open
On one of our affiliate sites we would like to set some 3rd party cookies on the main site that handles all of the order processing. Our p3p policy is working properly and setting the cookies now is no problem. That said, what's next?
Any suggestions on some clean ways to set the cookies on the main site? I know I can do it using frames, but I'd like to do it in some way that is invisible in the html source code....
Chris
You can set a cookie quite easily using some javascript (or any client side script). You can set server side cookies, although I have a feeling that the scenario that you're describing entails client side cookies...
However, the HTML source code will still clearly show that a different domain is serving the image file or other object - that's anavoidable. And as BlobFisk mentioned, only the same server that set the cookie can read the cookie later on.
<img src=widget.com?setcookie=string />?
Once the cookie is set I don't need to access it again so it isn't a problem that it's on another server. That said, is there no way to hide the cookie link entirely?
Is this possible through something like the php curl module?
Thanks,
Chris