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

M

mtcc

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!
 
D

Derek Harmon

mtcc said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top