473,411 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Help Session Varable Disappeared (asp.net 2.0)

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.

Jul 5 '06 #1
1 2037
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!
*************************************************
"Gary" <Ga**@discussions.microsoft.comwrote in message
news:F4**********************************@microsof t.com...
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.

Jul 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background...
2
by: Mig29 | last post by:
For some reason I'm unable to update a session variable btween pages. I can read them after I set in global.asa and I can change its value within the same script but when I go to another page, the...
3
by: No Spam Please | last post by:
I have a script. Its a login form that has the user enter their First Name, Last Name and ID #. That data along with the currdate and currtime is placed in an access database and the framed page...
2
by: Graham Mattingley | last post by:
Hello I had this idea that I thought was going to be really simple, and I just cant get it to work.. I have use an affiliate link on my site, and I did not like it because it did not have my...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
1
by: Wiktor Zychla | last post by:
Hello there, I've just encountered a strange problem with Session. In one particular scenario it is cleared between pages but the scenario is so specific that I am really, really startled. I've...
4
by: Stimp | last post by:
When a user logs into my site, I create a cookie with their UserID, but I wish to also create a Session variable to track their "UserType". I do this as follows: Session("UserType") = "admin"...
5
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, Recently, I just found out that our program behaves differently from before. in our asp, in order to prevent data disppearing problem in form fields,we use session variable to display...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.