title: Sharing session variables from http and https versio
body: <p>I am trying to fix an ASP.NET site that a friend had botched converting from older technologies. To the user, the site appears to have public and secured sections. Behind the scenes, the public and private sites are separate web applications with separate app pools. The difficulty arises because it appears that the applications share the same session IDs (when going from the public to the secured pages, the session ID remains the same), yet <em>none</em> of the (InProc) session variables are getting passed from the public site to the private one.  </p>
  
  <p>Basically, the workflow consists of the user checking a checkbox ("I agree" type of stuff) on the public site (let's call that page <a href="http://www.boring.gov/iAgree.aspx" rel="nofollow noreferrer">http://www.boring.gov/iAgree.aspx</a>), then logging in on the secured site (let's call that page <a href="https://www.boring.gov/login.aspx" rel="nofollow noreferrer">https://www.boring.gov/login.aspx</a>). The commandments from the parent agency in DC are that the user may not bookmark the login page, the user has to click "I agree" every time they log in, and that the "I agree" stuff has to be on a separate page. </p>
  
  <p>What am I missing?  </p>
  
  <p>How would you do it?  </p>
  
  <p>Notes:<br>
  1 - This is getting hosted on a single Windows 2003 server.<br>
  2 - Yes, it is a government agency.<br>
  3 - I would have done things very differently if I was doing the conversion, but I wasn't brought in until the poop hit the fan, and it is too late to redo things.<br>
  4 - Two previous SO threads that appear to be related, yet don't apply are <a href="https://stackoverflow.com/questions/567535/how-can-i-share-an-asp-net-session-between-http-and-https" title="how can I share an asp.net session between http and https">this</a> and <a href="https://stackoverflow.com/questions/1193361/what-should-i-do-if-i-want-to-maintain-session-between-http-and-https-asp-net" title="What should I do If I want to maintain session between HTTP and HTTPS - Asp.Net">that</a></p>