title: ASP.Net Session variable stores the actual value or mere reference?
body: <p>I have following code, where I am fetcing a datatable stored in Session in a local variable, and updating the datatable. Next time, when I access the session, the updated values are fetched. (in my case, first row deleted datatable fetched for variable objTable1):</p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
      {
          DataTable objTable = (DataTable)Session["dTable"];
  
          objTable.Rows[0].Delete();
  
          DataTable objTable1 = (DataTable)Session["dTable"];
  
      }
  </code></pre>
  
  <p>I thought, local variables make a copy of the session variable and updation in that, do not update the session variable.</p>
  
  <p>Regards.</p>