将产品从一个域添加到不同域的购物车(两者都在同一台服务器上)

i have two domains say abc.com and xyz.com both are on same server, abc.com is core php based shopping cart developed to sell my company product

now abc.com is main doamin and xyz.com has been created for special marketing of specific product

now,(what i want) if someone clicks on any product on xyz.com i want to redirect it to abc.com/cart.html( i know about redirection from one domain to another) where it will show product selected by user on xyz.com added to cart.

xyz.com has a single page showing three products .

The requirement is that both domains have to store the sessions at the same place.

Then you have to make the client use the same session id on both domains, to do that, pass the session id in all links and redirects that go from one domain to another.

<a href="http://xyz.com/cart.php?<?php echo SID ?>">cart</a>