title: pass session variables to another domain
body: <p>It seems this cannot be easily done...if at all.</p>
  <p>Suppose I have 2 domains, <a href="http://www.mydomain.com" rel="nofollow noreferrer">www.mydomain.com</a> and <a href="http://www.mydomain.org" rel="nofollow noreferrer">www.mydomain.org</a>.  Each domain uses a Node.js/Express back-end and in addition both use the &quot;express-session&quot; module to create session information.  I wish to be able to have a user 'log in' while on one domain and have that session information pass to the other when navigation is made to the second domain.</p>
  <p>Each domain has a 'catch-all' route that displays a 'splash' page.  This is signified by the following route:</p>
  <pre><code>app.get('/', function (req, res) {
  //do stuff and display 'splash' page...
  }
  </code></pre>
  <p>I thought to pass the session information using a route that has a parameter containing the 'session' variable, and using that to set the 'logged in' user on the second domain.  For example:</p>
  <pre><code>app.get('/user/:client', function (req, res) {
  req.session.subscriber = req.params.client;  //set the 'logged in' user on the second domain
  //do stuff and display 'splash' page...
  }
  </code></pre>
  <p>The problem is that BOTH routes seem to be called when using the route with the parameter...I suppose this makes sense since the initial route is activated using a backslash (&quot;/&quot;)...Is there some way to correct this?</p>
  <p>Any help about cross-domain express-session variable 'sharing' would be greatly appreciated.  Thank you in advance.</p>