Threads.. Session var lost, App var ok

Discussion in 'ASP .Net' started by Alvin Bruney, Dec 2, 2003.

  1. Alvin Bruney

    Alvin Bruney Guest

    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" <> wrote in message
    news:ecc%...
    > 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.
    >
    >
    Alvin Bruney, Dec 2, 2003
    #1
    1. Advertising

  2. Alvin Bruney

    rooster575 Guest

    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.
    rooster575, Dec 2, 2003
    #2
    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. MG
    Replies:
    2
    Views:
    1,780
  2. thomson
    Replies:
    10
    Views:
    2,470
    Eliyahu Goldin
    Jun 20, 2005
  3. thomson
    Replies:
    0
    Views:
    358
    thomson
    Jun 20, 2005
  4. RonL
    Replies:
    1
    Views:
    411
    Neutrino
    Apr 17, 2006
  5. =?Utf-8?B?U00=?=
    Replies:
    1
    Views:
    305
    John Saunders
    Feb 28, 2007
Loading...

Share This Page