473,473 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Concurrent visitors sent someone else's data

Hi all,

I have an asp.net application exhibiting rather alarming behaviour. Among other things, the application provides actors with an online profile that allows them to showcase their skills, photographs, experience etc. Basically it is an asp.net front end with SQL Server 2000 as the data store.

The problem behaviour occurs when two users are editing the same type of data (and therefore requesting the same aspx page). If they both submit their updates at exactly the same time only one version of the page is returned to both users. One of the users sees their updated data as expected, whereas the other sees someone else's information. Obviously this is unacceptable to the users and I need to find a way of fixing the problem.

I have searched fairly widely and have discovered other asp.net developers reporting similar behaviour, but have not found any satisfactory explanation of what might be causing the behaviour. Some have speculated that it might be due to load balancers and others that it is caused by the use of static objects stored in the session object. Neither of these are applicable in my case.

I am interested in hearing from anyone that has experienced similar problems and particularly if you have been able to find a solution.

Thanks for you help.

Guy
Nov 18 '05 #1
3 1734
Are you using Output Caching in the page or control ? This could be the
cause
- Simon Green
InteSoft IT Ltd
ASPAccelerator - Fewer bytes, faster pages !
http://www.intesoft.net/aspaccelerator/
"Guy Penfold" <an*******@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Hi all,

I have an asp.net application exhibiting rather alarming behaviour. Among other things, the application provides actors with an online profile that
allows them to showcase their skills, photographs, experience etc. Basically
it is an asp.net front end with SQL Server 2000 as the data store.
The problem behaviour occurs when two users are editing the same type of data (and therefore requesting the same aspx page). If they both submit
their updates at exactly the same time only one version of the page is
returned to both users. One of the users sees their updated data as
expected, whereas the other sees someone else's information. Obviously this
is unacceptable to the users and I need to find a way of fixing the problem.
I have searched fairly widely and have discovered other asp.net developers reporting similar behaviour, but have not found any satisfactory explanation
of what might be causing the behaviour. Some have speculated that it might
be due to load balancers and others that it is caused by the use of static
objects stored in the session object. Neither of these are applicable in my
case.
I am interested in hearing from anyone that has experienced similar problems and particularly if you have been able to find a solution.
Thanks for you help.

Guy

Nov 18 '05 #2
You are spot on Simon. I had originally planned to allow the pages to be cached for a very short time period but for some strange reason I set VaryByParam="none" instead of varying the output cache by each user's unique ID value

Thanks for you help, I really appreciate it

Gu

----- Simon Green wrote: ----

Are you using Output Caching in the page or control ? This could be th
caus
- Simon Gree
InteSoft IT Lt
ASPAccelerator - Fewer bytes, faster pages
http://www.intesoft.net/aspaccelerator
"Guy Penfold" <an*******@discussions.microsoft.com> wrote in messag
news:F0**********************************@microsof t.com..
Hi all
I have an asp.net application exhibiting rather alarming behaviour. Amon other things, the application provides actors with an online profile tha
allows them to showcase their skills, photographs, experience etc. Basicall
it is an asp.net front end with SQL Server 2000 as the data store The problem behaviour occurs when two users are editing the same type o data (and therefore requesting the same aspx page). If they both submi
their updates at exactly the same time only one version of the page i
returned to both users. One of the users sees their updated data a
expected, whereas the other sees someone else's information. Obviously thi
is unacceptable to the users and I need to find a way of fixing the problem I have searched fairly widely and have discovered other asp.net developer reporting similar behaviour, but have not found any satisfactory explanatio
of what might be causing the behaviour. Some have speculated that it migh
be due to load balancers and others that it is caused by the use of stati
objects stored in the session object. Neither of these are applicable in m
case I am interested in hearing from anyone that has experienced simila problems and particularly if you have been able to find a solution Thanks for you help
Gu

Nov 18 '05 #3
I have experienced similar situations relating to posting of
information at the sametime to a database.

The way I have handeled this problems is to use a "IF EXISTS
STATEMENT" with MS SQL inside of a BEGIN - END transaction

I query on the identity and the DateTimeStamp down top the
millisecond. This way i can decide what piece of information needs to
be posted first or will rollback the transaction.

I normally inform the user with less presidence that another user has
updated will you like to see that changes.

Good advise - When handling voliatile information caching on not an
option

Obinna Igbokwe - Solution Architect/Developer
Email: oigbokwe@73@hotmail.com
Microsoft Certified Solution Developer(M.C.S.D in ..NET)
Microsoft Certified Application Developer(M.C.A.D in ..NET)
http://www.investorquery.com Webmaster/Solution Architect/Developer
http://www.dedicatedsolutions.co.uk CEO
http://www.typing4less.net - Webmaster/Developer

"Guy Penfold" <an*******@discussions.microsoft.com> wrote in message news:<92**********************************@microso ft.com>...
You are spot on Simon. I had originally planned to allow the pages to be cached for a very short time period but for some strange reason I set VaryByParam="none" instead of varying the output cache by each user's unique ID value.

Thanks for you help, I really appreciate it.

Guy

----- Simon Green wrote: -----

Are you using Output Caching in the page or control ? This could be the
cause
- Simon Green
InteSoft IT Ltd
ASPAccelerator - Fewer bytes, faster pages !
http://www.intesoft.net/aspaccelerator/
"Guy Penfold" <an*******@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
> Hi all,
>> I have an asp.net application exhibiting rather alarming behaviour. Among other things, the application provides actors with an online profile that
allows them to showcase their skills, photographs, experience etc. Basically
it is an asp.net front end with SQL Server 2000 as the data store. >> The problem behaviour occurs when two users are editing the same type of data (and therefore requesting the same aspx page). If they both submit
their updates at exactly the same time only one version of the page is
returned to both users. One of the users sees their updated data as
expected, whereas the other sees someone else's information. Obviously this
is unacceptable to the users and I need to find a way of fixing the problem. >> I have searched fairly widely and have discovered other asp.net developers reporting similar behaviour, but have not found any satisfactory explanation
of what might be causing the behaviour. Some have speculated that it might
be due to load balancers and others that it is caused by the use of static
objects stored in the session object. Neither of these are applicable in my
case. >> I am interested in hearing from anyone that has experienced similar problems and particularly if you have been able to find a solution. >> Thanks for you help.
>> Guy
>>

Nov 18 '05 #4

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

Similar topics

23
by: deko | last post by:
Can someone point me to a sample script that will log all visitors to my web site? I'm looking for a simple script that will capture IP address, Host Name, Browser, OS, and referring page - and...
8
by: gil | last post by:
I'm trying to track how many users are visiting a site and how may are logged in, using application sessions like so: Sub Session_OnStart Session.Timeout = 20 Session("Start") = Now...
19
by: Swaregirl | last post by:
Hello, I would like to build a website using ASP.NET. I would like website visitors to be able to download code that I would like to make available to them and that would be residing on my...
2
by: Shapper | last post by:
Hello, I am adding a statistics section to my administration area and I need to get information from my web site visitors when session starts. I know this is done in glabal.asax. My question...
7
by: Novice Computer User | last post by:
Hi. I want people to enter specific information on my website - most likely in a form. (i.e. their name, address, etc). I then want that information to be emailed to me. Is there a way to do...
3
by: johnny | last post by:
hi all! I am starting to study the best way to track site visitors. Logfiles stats which come with every web hosting, have little metrics to be analyzed and also problems with cached pages which...
6
by: roblugt | last post by:
I have what I imagine is a well-known .Net networking problem, but even though I've Googled for some time I've not yet come across a thread where this has been fully explained... There is a...
6
by: goraya | last post by:
This is design level discussion about web applications. How I design application that support 1 million concurrent requests??
6
by: tenxian | last post by:
It is said as for code, developing a website that can stand 10,000 concurrent visitors is much different from developing a website that can stand 1,000 concurrent visitors, is it true?
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...
1
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.