J
John
Is there a safe way to gain access to the session object from inside a
spawned thread, in ASP.NET?
I'm familiar with the principle of creating a data storage object, passing a
reference to the thread, and then adding the object to the session. But this
won't work when using StateServer because of serialization (session only
contains a snapshop of the object at the point I added it, and the changes
made by the thread occur elsewhere).
Ideally I'd like:
void MyThreadWorker()
{
HttpSession sess = somemagicroutine();
sess["counter"] = 1;
}
Thanks,
John
spawned thread, in ASP.NET?
I'm familiar with the principle of creating a data storage object, passing a
reference to the thread, and then adding the object to the session. But this
won't work when using StateServer because of serialization (session only
contains a snapshop of the object at the point I added it, and the changes
made by the thread occur elsewhere).
Ideally I'd like:
void MyThreadWorker()
{
HttpSession sess = somemagicroutine();
sess["counter"] = 1;
}
Thanks,
John