I'm working on an asp.net web site. We have to use com interop to interact with legacy vb6 activex components. The components in many cases rely on receiving a context object (which is itself a vb6 activex component) as a parameter. The context object is fairly costly to construct.
Therefore one idea is that a context object is constructed once and stored in asp.net session. However, if this object is just a .net wrapper around an activex component, is it wise or advisible to persist such an object in session?
Additionally the context object contains user specific information, so persisting using .net HttpRuntime Caching could be used, but would require a user specific key.
I understand the other limitations and things you need to be aware of with asp.net session, aspnet-session question.
To ask the question a slightly different way: are their any issues or problems with storing an .net object that is just a wrapper around a com object?