OleDbConnection and (isNewSession=true) on first PostBack - bug!

Discussion in 'ASP .Net' started by mtcc, Oct 2, 2005.

  1. mtcc

    mtcc Guest

    i find out weird behavior or bug!

    when i put connection on WebForm, and call fill on page_laod, i get
    isNewSession=true on first PostBack!
    when i declare new connection on my code in page_laod, i get
    isNewSession=false on first PostBack as
    we expect!
    mtcc, Oct 2, 2005
    #1
    1. Advertising

  2. mtcc

    Mr Newbie Guest

    Post your Page_Load event code.



    "mtcc" <> wrote in message
    news:433fa04f$1@news.012.net.il...
    >i find out weird behavior or bug!
    >
    > when i put connection on WebForm, and call fill on page_laod, i get
    > isNewSession=true on first PostBack!
    > when i declare new connection on my code in page_laod, i get
    > isNewSession=false on first PostBack as
    > we expect!
    >
    Mr Newbie, Oct 2, 2005
    #2
    1. Advertising

  3. mtcc

    Derek Harmon Guest

    "mtcc" <> wrote in message news:433fa04f$1@news.012.net.il...
    > when i put connection on WebForm, and call fill on page_laod, i get isNewSession=true on first PostBack!
    > when i declare new connection on my code in page_laod, i get isNewSession=false on first PostBack as


    Are you using in-proc SessionState (the default)? and if so, did you
    notice the aspnet_wp working process get recycled? (If debugging,
    in the Output Window you'd see a message that the original WP
    thread was killed between the first page request and the first post
    back.)

    If you're observing both of these facts, then switching to a more
    persistent store for SessionState like SQL Server keeps your
    sessions from recycling when IIS recycles ASP.NET.


    Derek Harmon
    Derek Harmon, Oct 2, 2005
    #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. Anders Borum
    Replies:
    0
    Views:
    3,433
    Anders Borum
    Jun 9, 2004
  2. =?Utf-8?B?Q2hhZA==?=

    Postback not being set to True on first postback

    =?Utf-8?B?Q2hhZA==?=, Apr 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    492
    =?Utf-8?B?Q2hhZA==?=
    Apr 4, 2005
  3. Mirek Endys

    OnSessionStart or IsNewSession

    Mirek Endys, Mar 1, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    4,007
    Steven Cheng[MSFT]
    Mar 2, 2006
  4. daokfella

    Session.IsNewSession Always True

    daokfella, Aug 4, 2008, in forum: ASP .Net
    Replies:
    3
    Views:
    2,080
    Hans Kesting
    Aug 5, 2008
  5. bdb112
    Replies:
    45
    Views:
    1,334
    jazbees
    Apr 29, 2009
Loading...

Share This Page