I think you got it.
The value in the session is just a memory address pointing to the data on
the HEAP. All references, whether you create a new var and assign it to the
old, or pass it as a parameter, as all pointing to the same data on the
heap, change one and you change all.
Karl
--
http://www.openmymind.net/
"Dundealing" <Du********@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
I have just completed a walkthrough exercise in a MS book and noticed that
while the instance of a new class was put into session when the page was
created, it was only ever retrieved on subsequent postbacks (it was not
placed back into a session variable at any point in the program).
Is this because a class maintains just a reference to the object in
Session,
or am I missing something else?