I\'m using the session to hold a custom object UserSession and I access the session like this:
UserSession TheSession = HttpContext.Current.Session[\"UserSes
Yes it is the same object. It is very easy to see in the following example:
Session["YourObject"] = yourObject; yourObject.SomeProperty = "Test"; var objectFromSession = (YourObjectType)(Session["YourObject"]); Response.Write(objectFromSession.SomeProperty);
The Write will display: Test
Write
Test