title: Cannot access a cookie from a Virtual Directory configures as application
body: <p>Setup:</p>
  
  <ol>
  <li>The main application is a classic ASP running on app-pool v2.0</li>
  <li>Reporting application was added later on which was written in .Net 2.0 framework. The classic form model with aspx pages. The application was configured as an application under the main website (from 1)</li>
  <li>The Reporting application is now to rewritten using MVC 3, and will be deployed similarly on the IIS as an Application under the classic asp website.</li>
  </ol>
  
  <p>Problem,</p>
  
  <p>The login page on the Classic ASP website stores the session ID on a cookie. This cookie is read every time Authentication is required. The MVC application needs to read this cookie but the System.Web.HttpContext.Current.Response.Cookies collection doesn't have it. The application (from 2) which needs to be replaced can however easily read it.</p>
  
  <p>Things I have tried, </p>
  
  <ol>
  <li>Made sure that the cookie exists by looking at the cookie collection for the main application (from IE8>Tools>Developer Tools> Cache> View Cookie Information).</li>
  <li>Removed the IsolateApps setting from the the machine key.</li>
  <li>Made sure the new application is using the same app pool, don't think if that will really cause an issue here.</li>
  </ol>
  
  <p>Appreciate any help with this, Many thanks in advance.</p>
  
  <p>Surya</p>