Hi Chris:
Here are some details:
ASP.NET does manage access to session state with a ReaderWriterLock.
The default is to take a writer lock, which serializes requests coming
in on the same session (using EnableSessionState="ReadOnly" takes a
reader lock and does allow concurrent request processing on a
session).
In this example, you are not really modifying session state, but
modifying an object through a reference stored in session state. If
anyone else has a reference to the same object the code is only thread
safe if MyObject is thread safe.
Know what I mean?
--
Scott
http://www.OdeToCode.com/blogs/scott/
When accessing, for example, an object stored in the session such as:
Session[ "MyObject" ].MyProperty = "Some Value";
Is access to MyObject thread-safe?