title: How can I share a SESSION between multiple ColdFusion applications on the server/under the same domain?
body: <p>Let's say I have a domain sub.domain.com with one login form at <a href="https://sub.domain.com/login.cfm" rel="nofollow">https://sub.domain.com/login.cfm</a>.</p>
  
  <p>In the root directory, I have my Application.cfc which names the application using <code>THIS.Name = "MyApp";</code>.</p>
  
  <p>I have several sub-directories on this website, which I want to run as separate applications, with their own Application.cfc which extends the root Application.cfc, but each has it's own name, so that I can create Application-scope variables unique to that application:</p>
  
  <p>For instance: <strong>sub.domain.com/site1/Application.cfc</strong></p>
  
  <p>extends <strong>sub.domain.com/Application.cfc</strong> (using a Proxy cfc)
  <code>THIS.Name = "MyApp_Site1";</code></p>
  
  <p>and sets some Application-scope variables specific to the application.</p>
  
  <p>But, when they login in at <a href="https://sub.domain.com/login.cfm" rel="nofollow">https://sub.domain.com/login.cfm</a>, any SESSION-scope variables set there are tied to the APPLICATION name "MyApp". </p>
  
  <p>What kind of solution can I use to accept the valid login in the root directory Application, and then forward the user to their application, while carrying over their user-specific properties?</p>