473,399 Members | 4,177 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,399 software developers and data experts.

PROBLEM: Browsers Sharing Session Variables

I have an ASP.NET 1.1 web app that stores a current record ID value in
a session variable so it can be accessed from multiple pages for
inserting/updating of related records.

Unfortunately, if the user chooses FILE/NEW/WINDOW in IE, the new
browser window has the same session ID as the original browser window.
Therefore, if the user retrieves a different record in the second
browser window, the ID in the session variable is changed to reflect
that, but the original browser window is still displaying the old
record. Because the ID value stored in the session is used for
inserts/updates of related records, the actions in one browser window
can (and did) overwrite the data from another record.

Q: Is there some way to prevent this from happening by tracking if a
second window is opened, or something, anything?

Help Mr. Wizard!

Nov 28 '05 #1
2 1542
No, this is how it works, I don't believe there is a way to stop it.

To avoid your problem, don't store these things in session. Use ViewState,
hidden input controls, etc.

"Godot" <im*****@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I have an ASP.NET 1.1 web app that stores a current record ID value in
a session variable so it can be accessed from multiple pages for
inserting/updating of related records.

Unfortunately, if the user chooses FILE/NEW/WINDOW in IE, the new
browser window has the same session ID as the original browser window.
Therefore, if the user retrieves a different record in the second
browser window, the ID in the session variable is changed to reflect
that, but the original browser window is still displaying the old
record. Because the ID value stored in the session is used for
inserts/updates of related records, the actions in one browser window
can (and did) overwrite the data from another record.

Q: Is there some way to prevent this from happening by tracking if a
second window is opened, or something, anything?

Help Mr. Wizard!

Nov 28 '05 #2
Marina,

Thanks for the replay. I was afraid that was the case. I had hoped
that my short-sightedness in using session variables for our current
user-level data wouldn't necessitate a rewrite, but oh well....

-- Paul

Nov 28 '05 #3

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

Similar topics

13
by: Mimi | last post by:
Hello, I am having trouble using the session vars in PHP 4.3.9 OS: Win XP Prof Web Server IIS (is local and there are no links to other servers from the web pages I work on) Browser: IE 6.0 ...
3
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like...
8
by: max underwood | last post by:
we are using internet explorer 6, reading information from w2k iis asp. users are opening two browsers so they can keep two sessions open with different information. It is rare, but sometimes the...
1
by: William LaMartin | last post by:
For several weeks I have been trying to track down the cause of disappearing session and application variables. At the site that gives me the problem--a Microsoft FrontPage site--I note that there...
3
by: Hardik Shah | last post by:
Hi, I am calling an ASP.Net page from an ASP classic application but need the .Net page to have access to ASP classic's session variables. I am using HTTPWebRequest to call ASP classic page...
3
by: grooby | last post by:
I would like to develop an asp.net Web application using muliple web projects under one solution file and share the session information between web applications( or projects). Is this possible?
3
by: Philip Tepedino | last post by:
I'm having an odd problem. My website's session state is getting shared between users! This problem only happens when a user tries to access the site from inside our corporate LAN. The user,...
3
by: Selden McCabe | last post by:
I have an old ASP project, and I'm adding some functionality in ASP.Net. I stuff some information into Session variables in the ASP page, then redirect to the ASP.Net page. But when I pull up...
7
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.