Asp.net - Do changes to session objects persist? 
<p>I'm using the session to hold a custom object UserSession and I access the session like this:</p>

<pre><code>UserSession TheSession = HttpContext.Current.Session["UserSession"] as UserSession;
</code></pre>

<p>Then, in my code, I modify a property of TheSession like this</p>

<pre><code>TheSession.Prop1 = some new value;
</code></pre>

<p>My question is this: when I change the value, does it change the value inside the session that's in HttpContext.Current.Session["UserSession"] or just the TheSession variable, in which case I'd need to reassign the object variable to the session.</p>

<p>Thanks.</p>
