title: What is really stored in Session in ASP.NET?
body: <p>We are trying to decide how to handle object persistence accross postbacks, to avoid getting the data from the database in every request, and I'm leaning towards using Session (it's an intranet application, there won't be thousands of users), but this is due to the fact that I suspect that only the reference to the real object is stored there...</p>
  
  <p>Does anyone know for a fact if this is true?</p>
  
  <p>I've always been taught not to over use the session object, but if it works this way it wouldn't really be a big problem...</p>
  
  <p>What is really stored in session here:</p>
  
  <pre><code>Session["myKey"] = myObject;
  </code></pre>
  
  <p>The actual serialized object, or its reference?</p>