User283571144 posted
Hi anp123,
As far as I know, the IIS will not changed the thread id when hosting. I guess you may enabled web farm in your IIS. To solve this issue, you should use the sql server session provider or redis provider instead of the InProc.
The inproc will store the session into the memory.
More details about how to use the sql server session provider or redis provider, you could refer to below article:
https://support.microsoft.com/en-sg/help/317604/how-to-configure-sql-server-to-store-asp-net-session-state
Best Regards,
Brando