posted on Friday, December 31, 2004 6:53 AM
by
Saravana
Facts about storing objects in Sessions, Cache, Application....
Rick Strahl's has done a test on storing objects in sessions and cache. He has given interesting information about this in his blog.
Fact is, When you store reference object like dataset in session or cache. It is storing a live reference of that object in session or cache. Therefore whenever you do some changes to that object, it will be reflected in session and cache objects. We can understand why it is happening in case of inproc mode for session. However interesting thing is, it is also happening when you have sessions stored in sqlserver or out of process. Though the objects are serialized in case of stateserver and sqlserver mode, it is behaving like inproc mode. To know why it is happening and to know about Rick Strahl's test on this, read his blog.