I have a ASP.NET website where a thread is responible for doing some code retrived from a database queue.
Is it possible to get access to the Session or pass that as a parameter ?
My current code looks a follows:
MediaJob nextJob = GetNextJobFromDB();
CreateMedia media = new CreateMedia();
Thread t = new Thread(new parameterizedThreadStart(media.DOSTUFF);
t.Start(nextJob);
The HttpContext.Current.Session is null when running in a thread, so cant do that