I'm using the session to hold a custom object UserSession and I access the session like this:
UserSession TheSession = HttpContext.Current.Session["UserSession"] as UserSession;
Then, in my code, I modify a property of TheSession like this
TheSession.Prop1 = some new value;
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.
Thanks.