How can you use HttpContext.Current when Multi-Threading? How can you use HttpContext.Current when Multi-Threading? multithreading multithreading

How can you use HttpContext.Current when Multi-Threading?


I have a site on a shared server. I need to have a BATCH job and I do that in another thread. It can run up to 1 hour (I ping the site so the worker process does not stop).

I went down the road of tying to get the current context. After many hours of research and searching it cannot be done. In a new thread the httpcontent.current is not there, it is not the same thread as the user was accessing, so the context did not carry over, and you cannot access the logged in user, since they are not logged into that thread.