Create a cookie accessible to a domain A from a popup in a domain B
<p>The functionality im trying to create is similar to how <em>facebook connect</em> works, in a domain A when a button is pressed a popup fires up, showing content from a domain B, on this popup if the user login a cookie is created and then the popup is closed, but since this cookie was created in the domain B i cant access that information from A. How facebook solve this? Im a javascript and PHP developer so if you provide me with a code example it will be very appreciated.  </p>
