How should I share sessions transparently across domains?
There are some related answers and solutions at &quot;Enterprise&quot; authentication, single sign-on and user provisioning for multiple sites. 

While you have a more specific question, the goal is similar to what many SSO solutions in Drupal try to achieve.