Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Threads.. Session var lost, App var ok

Reply
Thread Tools

Threads.. Session var lost, App var ok

 
 
Alvin Bruney
Guest
Posts: n/a
 
      12-02-2003
How are you touching this session object with a worker thread? You know you
aren't allowed to do that right?

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"rooster575" <(E-Mail Removed)> wrote in message
news:ecc%(E-Mail Removed)...
> I have a simple thread the sets Session("Complete") = 1 when it is

finished.
>
> Within that thread, I can see the session variable as updated fine, but

when
> the page refreshes and I look at the Session("Complete"), I find that it

is
> the original value before the thread touched it. [As if they were 2 unique
> session vars]
>
> I replaced Session("Complete") with Application("Complete") and it worked
> perfectly FINE.
>
> Any ideas. I'm using sqlserver as the sessionstate mode.
>
> Thanks.
>
>



 
Reply With Quote
 
 
 
 
rooster575
Guest
Posts: n/a
 
      12-02-2003
I have a simple thread the sets Session("Complete") = 1 when it is finished.

Within that thread, I can see the session variable as updated fine, but when
the page refreshes and I look at the Session("Complete"), I find that it is
the original value before the thread touched it. [As if they were 2 unique
session vars]

I replaced Session("Complete") with Application("Complete") and it worked
perfectly FINE.

Any ideas. I'm using sqlserver as the sessionstate mode.

Thanks.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
len(var) is [CONSTANT] equal to len(var) == [CONSTANT]? Tor Erik Soenvisen Python 14 11-23-2006 09:57 PM
Difference between Session["var"] and Session("var") thomson ASP .Net 10 06-20-2005 01:02 PM
Difference between Session["var"] and Session("var") thomson ASP .Net 0 06-20-2005 10:54 AM
Invoking constructor : Foo(var) and Foo ins(var) Alex Vinokur C++ 4 09-24-2003 04:01 PM
does "struct_name var = { 0 }; " fill var with 0? Fred C++ 3 08-10-2003 09:44 AM



Advertisments