Help Session Varable Disappeared (asp.net 2.0)

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.
 
C

Cowboy \(Gregory A. Beamer\)

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top