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

Discussion in 'ASP .Net' started by =?Utf-8?B?Q2hyaXM=?=, Jun 4, 2004.

  1. 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
     
    =?Utf-8?B?Q2hyaXM=?=, Jun 4, 2004
    #1
    1. Advertising

  2. Make sure you pass the Page.Session on you thread and you'll be fine

    Al
     
    =?Utf-8?B?QWxiZXJ0IFBhc2N1YWw=?=, Jun 4, 2004
    #2
    1. Advertising

  3. "Chris" <> wrote in message
    news:D...
    > 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?
    --
    John Saunders
    johnwsaundersiii at hotmail
     
    John Saunders, Jun 4, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manisha
    Replies:
    2
    Views:
    572
  2. Jeff Rodriguez
    Replies:
    23
    Views:
    1,211
    David Schwartz
    Dec 9, 2003
  3. notanotheridiot
    Replies:
    1
    Views:
    442
    Antoon Pardon
    Jul 14, 2006
  4. Replies:
    9
    Views:
    1,853
    Piet van Oostrum
    Jul 26, 2009
  5. Praxis Happenstance
    Replies:
    4
    Views:
    205
    General Protection Fault
    Jul 23, 2004
Loading...

Share This Page