My company has a setup as follows:
Create a common domain specifically for your cookies and use it as a getter/setter API.
http://cookie.domain.com/set/domain1 http://cookie.domain.com/get/domain1 http://cookie.domain.com/set/domain2 http://cookie.domain.com/get/domain2
and so on.