title: Sharing asp.net authentication on different apps on different sub-domains
body: <p>I have 2 applications. One on asp.net webforms <code>main.test.com</code> which should provide authentication, user logs in and I can use the cookie to authenticate on my asp.net mvc app located at <code>myApp.test.com</code>.</p>
  
  <p>All I'd like to do is able to access the cookie so I can get the userId that was stored in it using the <code>FormsAuthentication</code>.</p>
  
  <p>They use normal authentication provided by microsoft;</p>
  
  <pre><code> &lt;authentication mode="Forms"&gt;
       &lt;forms domain="test.com" loginUrl="Default.aspx" protection="All" path="/" requireSSL="false" timeout="45" name=".ASPXAUTH" slidingExpiration="true" defaultUrl="Default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false"/&gt;
   &lt;/authentication&gt;
  </code></pre>
  
  <p>This cookie should be accessible to any submain on test.com right?</p>