473,386 Members | 1,803 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,386 software developers and data experts.

ASP.NET Duplicate SessionID Problem

CQL
I'm using a custom Session object to store information about current
selections in my asp.net application and I am running into a problem on IE
when a new window is cloned using Ctrl+N. Because IE uses same session id's
for two windows a problem exists where a user can potentially update wrong
data.
For example: I have selected patient A to be the current patient and I am
looking at patient's A records, then I open another window using Ctrl+N.
Obviously it pulls up exactly the same information about patient A. Well, I
select patient B and look at his/her information. (My session object now
holds patient B as current). Then I switch back to the first window... which
still has patient A displayed, I change some info and click 'Update' --
tragically I just updated patient B with patient's A information.
What is the best way to prevent this scenario in asp.net without having to
pass arguments around from page to page.
Thanks in advance -
Dan
Nov 17 '05 #1
2 1439
I would use the unique patient ID in the Database to update a patient
keep the patient ID with each Window.
pass parameters around.

"CQL" <da*******@cqlcorp.com> wrote in message
news:ux**************@TK2MSFTNGP12.phx.gbl...
I'm using a custom Session object to store information about current
selections in my asp.net application and I am running into a problem on IE
when a new window is cloned using Ctrl+N. Because IE uses same session id's for two windows a problem exists where a user can potentially update wrong
data.
For example: I have selected patient A to be the current patient and I am
looking at patient's A records, then I open another window using Ctrl+N.
Obviously it pulls up exactly the same information about patient A. Well, I select patient B and look at his/her information. (My session object now
holds patient B as current). Then I switch back to the first window... which still has patient A displayed, I change some info and click 'Update' --
tragically I just updated patient B with patient's A information.
What is the best way to prevent this scenario in asp.net without having to
pass arguments around from page to page.
Thanks in advance -
Dan

Nov 17 '05 #2
Find a better way of keeping track of which patient you are updating.
Passing arguments from page to page is the simplest way to accomplish that.

What exactly is the problem with passing arguments from page to page?

Colin

"CQL" <da*******@cqlcorp.com> wrote in message
news:ux**************@TK2MSFTNGP12.phx.gbl...
I'm using a custom Session object to store information about current
selections in my asp.net application and I am running into a problem on IE
when a new window is cloned using Ctrl+N. Because IE uses same session id's for two windows a problem exists where a user can potentially update wrong
data.
For example: I have selected patient A to be the current patient and I am
looking at patient's A records, then I open another window using Ctrl+N.
Obviously it pulls up exactly the same information about patient A. Well, I select patient B and look at his/her information. (My session object now
holds patient B as current). Then I switch back to the first window... which still has patient A displayed, I change some info and click 'Update' --
tragically I just updated patient B with patient's A information.
What is the best way to prevent this scenario in asp.net without having to
pass arguments around from page to page.
Thanks in advance -
Dan

Nov 17 '05 #3

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

Similar topics

7
by: Christoph Pieper | last post by:
Hi, we've the following problem : We have an asp-application which sets the cookie on first login. The cookie will never be touched during user access. The user can work the whole day, but...
6
by: nick4soup | last post by:
I have read the CGI FAQ 'How can I avoid users hitting "submit" twice' (on http://www.htmlhelp.org/faq/cgifaq.3.html#19 ) which essentially says you have to detect it at the server, using a...
8
by: Brad Simon | last post by:
I have written a shopping cart using ASP .NET (VB). It has been running quite successfully on a site for about a year or so. I use the SessionID as the key to hold information on the shopping...
6
by: Mike Kline | last post by:
Hi There! I'm creating a HttpModule and after AcquireRequestState event, I tried to access the HttpApplication.Session.SessionID and somehow I'm getting a new value on every Refersh of ASPX...
5
by: Reza Solouki | last post by:
Help, I posted another thread here asking help because I was losing my session information(got no response). After a lot of searching on different sites I discovered that my sessionID changes...
0
by: John | last post by:
Hello, We have developed a web application which uses ASP.Net to persist a user's session state in SQLServer mode. The application makes use of this feature in a 2 server web farm, which is...
2
by: Chip | last post by:
Maybe this problem has been solved many times. My users frequently bookmark the URL with sessionID in it and then have all kinds of problems when subsequent users use that bookmark since the old...
3
by: Rolf Welskes | last post by:
Hello, the following sample application in ASp.net 2.0 / VS2005 (Webproject). in an testPage.aspx ................ <P><A href="01Test01A.aspx">Link to 01Test01 A</A></P> <P><A...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.