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

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
 
J

John Saunders

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,191
Latest member
BuyKetoBeez

Latest Threads

Top