title: ASP.NET - Storing Classes in Session Variables - How it works (memory)?
body: <p>I've read that you can store classes directly into a session variable i.e.</p>
  
  <pre><code>Session["var"] = myclass;
  </code></pre>
  
  <p>My question is how the memory management works. Does it automatically serialize this into the session on the client side? </p>
  
  <p>Or does it hold the data for the instance of the class in server memory, and just holds a reference in the session object?</p>