Help Session Varable Disappeared (asp.net 2.0)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Open the web browser at the same time, the session varable in the second
broswer is disappeared.
All The Session Varable is declared in the webform page load.
 
If you open using Control + N (or New Browser from the menu), the two
instances share session. Most likely you are killing the session var on the
second instance, which kills it in both. Try opening a new browser instance
from the start menu and see if it still happens. If not, there's your
trouble! :-)

Try not to rely on session vars too much. Most of the reasons for storing on
the server come from needing something in a single page. ViewState is a
better option, as it falls out of scope when the page is gone.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 

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

Back
Top