Child Thread Can't Write To Session In Multithreaded ASP.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

I have a webpage processing a long-running report that can take up to a minute or two to complete. So I spawn a child process and have it do the work while the browser checks back periodically. When the work is finished, a flag is set in session, which the requesting web client picks up and returns the results. Sounds pretty standard so far, right?? Anyhow, this all works fine when Session State is inproc, BUT, when I convert to using out-of-proc session, the edits that the worker process is making to Session state aren't being recognized. Can anyone shed some ligh on what's going on here

Thanks
Chris
 
Chris said:
Hello all,

I have a webpage processing a long-running report that can take up to a
minute or two to complete. So I spawn a child process and have it do the
work while the browser checks back periodically. When the work is finished,
a flag is set in session, which the requesting web client picks up and
returns the results. Sounds pretty standard so far, right?? Anyhow, this all
works fine when Session State is inproc, BUT, when I convert to using
out-of-proc session, the edits that the worker process is making to Session
state aren't being recognized. Can anyone shed some ligh on what's going on
here?

Are you using a child thread or a child process?

And how is the child setting the flag in session state?
 
Back
Top