Hi All,
I am creating a new custom MVC application which will pull data from Dynamics Ax using BC. For improving the performance of the site , I stored the Axapta object created (after axapta.LogOn()) in session variable so that I can reuse the object in the subsequent calls in a browsing session. Then when a user opens a new window it creates a new session of Axapata and store it in .Net Session variable.
The issue is that when a user closes the browser , I will not be able to dispose the object inside session since I don't have any control over window close.
So the connection to Ax persists even though the user is idle for more than 20 mins since the worker process is still running. The connection will be closed if the Application pool recycles since it will unload the unmanaged objects from memory.
Could you please guide me so that I can handle this situation.
*This post is locked for comments
I have the same question (0)