If you want each user session to have it own exclusive copy of an object, you should use it as a session object, not as an application state object. Application state is accessible by all the user sessions, so one session can modify and it would be modified forever for all the other session..
So, try setting whatever as session variable in the Session_Start event. Then it would be specific that user session only
raven wrote: |
Just out of curiosity how would asp.net react when both session would be modifing the dictionary at the same time?
|
|
Application State objects are thread safe. Asp.net will take care of the synchronization issues and would not allow two sessions to modify an application object at once