title: Silverlight, WCF AspNetCompatibilityRequirements and ASPNET Session State not shared
body: <p>I have a Silverlight application that on a button opens an aspx page in a new browser window.</p>
  
  <p>I want to pass some username/password details from Silverlight to the aspx page.  My understanding is that I should be using WCF services to set the session state, which can then be retrieved from the aspx page.</p>
  
  <p>I have followed what I think are the correct steps, but the aspx page refuses to see the state set by Silverlight.</p>
  
  <p>What I have done is;</p>
  
  <ul>
  <li>Created a WCF service that sets System.Web.HttpContext.Current.Session["Thing"]</li>
  <li>On that service, set AspNetCompatibilityRequirements = Required and also set aspNetCompatibilityEnabled="true" on the web.config</li>
  </ul>
  
  <p>My Silverlight application is able to set (and retrieve) session information using this WCF service successfully.</p>
  
  <p>However when I get Session["Thing"] on the aspx page it is blank.  Also if I set Session["Thing"] on the aspx page, Silverlight does not get it.</p>
  
  <p>It's as if the two have different sessions - why is this?</p>
  
  <p>Thanks in advance
  Matt</p>