I am using our own Sitecore Error Manager in a Sitecore 8.2 project. If an item is not found or an error occurs, our error page is called within the current client request. This error handler calls a configured Error content page within Sitecore.
Since the introduction of the xDB, a call to this page takes > 10 seconds before the internal request finishes. This happens, because we forward all client cookies to this call, including the Analytics cookie.
At the end of this pageload, we see the following in the logfile:
Overriding expired contact session lock for contact id: 41a8f96f-7aa8-413e-9731-eecbb414bd24
This happens because the user currently has an open request. The nested request runs into the session lock which eventually get released.
Question: Is it possible to disable the Tracker for this nested request by request parameter or a cookie or something? It is not neccessary at all. Not forwarding the analytics cookie is my least favorited solution since the request would be tracked with a new visitor session, which fills the contacts with garbage data.
I tried to stop the tracking in the Analytics settings of the nested page itself but had no luck with this. The problem still appears.