Posted on 2009-07-07
I'm having a problem with session variable in a thread.
Inside a thread I'm using this code
context.Session["something"] = "some text";
I'm passing to the new thread the context object: HttpContext.Current
When I debug the code I can see the httpContext is passed correctly to the new thread, but when I try to set the session I have an exception saying the session is null.
After I run the thread I'm redirecting to a new page.
Inside this new page I wanna read the value of the session and this is empty.