B
Brian Cryer
I'm developing a website which at one point has a hefty amount of data
processing to do. I delegate this to a separate thread and on the results
page do an auto-refresh every few seconds until the results are available.
In my thread I take a reference to the page that invoked the thread, so that
I can get access to the session object. The thread writes to the session to
indicate that it has finished. This all worked fine, until I decided to
switch from InProc to StateServer. Whilst I don't get any errors, it behaves
as though the session object my thread is referencing is different to the
one that my results page is referencing and my communications therefore
don't work any more.
So, my question is, what is the best way for a thread to get access to the
current session object?
(I'm sure it should be sooo easy but ....)
thanks in advance,
Brian.
processing to do. I delegate this to a separate thread and on the results
page do an auto-refresh every few seconds until the results are available.
In my thread I take a reference to the page that invoked the thread, so that
I can get access to the session object. The thread writes to the session to
indicate that it has finished. This all worked fine, until I decided to
switch from InProc to StateServer. Whilst I don't get any errors, it behaves
as though the session object my thread is referencing is different to the
one that my results page is referencing and my communications therefore
don't work any more.
So, my question is, what is the best way for a thread to get access to the
current session object?
(I'm sure it should be sooo easy but ....)
thanks in advance,
Brian.