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

Apparent session crosstalk

We are having a very strange problem. We have users processing
personal information, and sometimes, they will go to different page
within that person (i.e. from address details, to insurance coverage),
and all of a sudden, be looking at the data from someone else. This
is obviously causing us exposure to data integrity problems as they
may not notice this data has changed, and go ahead and save it.

We have figured out that when this happens, another user had either
been viewing, or updating, the 2nd person (i.e. the person whose data
gets displayed back to the first user).

Our environment is using a Cisco switch for load balancing between two
servers. No web garden. We have had the users hit one of the servers
directly (thus, eliminating Cicso from the picture) and it still
occurs.

We are not sure if the session variable that stores the person id is
getting altered somehow, or if it is serving back the wrong data. We
have put in a bunch of log messages to determine if the person id is
changing, although we suspect it is the correct person id since they
sometimes don't notice it and go ahead and do the save. This then
modifies the original person information with the wrong data that was
being displayed on the screen.

We are really at a loss and would greatly appreciate any suggestions!

thanks,
Shari
Nov 18 '05 #1
3 1804
Hi Shari,

The first thing to check is to make sure you are using Session() and not
Cache() or Application() by mistake. That is the most common reason this
happens. Session variables might be being used everywhere except for one
key line of code. Also if you encapsulate these objects, check out that
code to make sure there isn't a mistype somewhere. The next thing you
should do after checking that is find a way to consistently make the problem
happen. Have a couple developers or QA people figure out a way to make it
happen. Once you can do that then you can find the code where it occurs.
Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"Shari" <sf*****@hotmail.com> wrote in message
news:ee**************************@posting.google.c om...
We are having a very strange problem. We have users processing
personal information, and sometimes, they will go to different page
within that person (i.e. from address details, to insurance coverage),
and all of a sudden, be looking at the data from someone else. This
is obviously causing us exposure to data integrity problems as they
may not notice this data has changed, and go ahead and save it.

We have figured out that when this happens, another user had either
been viewing, or updating, the 2nd person (i.e. the person whose data
gets displayed back to the first user).

Our environment is using a Cisco switch for load balancing between two
servers. No web garden. We have had the users hit one of the servers
directly (thus, eliminating Cicso from the picture) and it still
occurs.

We are not sure if the session variable that stores the person id is
getting altered somehow, or if it is serving back the wrong data. We
have put in a bunch of log messages to determine if the person id is
changing, although we suspect it is the correct person id since they
sometimes don't notice it and go ahead and do the save. This then
modifies the original person information with the wrong data that was
being displayed on the screen.

We are really at a loss and would greatly appreciate any suggestions!

thanks,
Shari

Nov 18 '05 #2
Try this...

Store a GUID in the session object. Pass the same GUID to the user as a
cookie. On each page request, check to see if the GUID in the cookie matches
the one in session. If it doesn't, then somehow your users are hitting other
people's sessions.

--
Jonathan Allen
"Shari" <sf*****@hotmail.com> wrote in message
news:ee**************************@posting.google.c om...
We are having a very strange problem. We have users processing
personal information, and sometimes, they will go to different page
within that person (i.e. from address details, to insurance coverage),
and all of a sudden, be looking at the data from someone else. This
is obviously causing us exposure to data integrity problems as they
may not notice this data has changed, and go ahead and save it.

We have figured out that when this happens, another user had either
been viewing, or updating, the 2nd person (i.e. the person whose data
gets displayed back to the first user).

Our environment is using a Cisco switch for load balancing between two
servers. No web garden. We have had the users hit one of the servers
directly (thus, eliminating Cicso from the picture) and it still
occurs.

We are not sure if the session variable that stores the person id is
getting altered somehow, or if it is serving back the wrong data. We
have put in a bunch of log messages to determine if the person id is
changing, although we suspect it is the correct person id since they
sometimes don't notice it and go ahead and do the save. This then
modifies the original person information with the wrong data that was
being displayed on the screen.

We are really at a loss and would greatly appreciate any suggestions!

thanks,
Shari

Nov 18 '05 #3
I found a solution in another post
http://groups.google.com/groups?hl=e...TF-8%26hl%3Den

The poster Andrew mentions the line
<%@ OutputCache Duration="1" VaryByParam="*" %>

Our pages had an output cache duration of 1 as well, so it was caching
the page for 1 second on the server, so another user accessing the
page within the second would get that page served back.

We took this line out and implemented it last weekend, and so far this
week, the problem has not recurred.
Nov 18 '05 #4

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

Similar topics

2
by: Damien | last post by:
Hi to all, I'm currently re-designing our intranet : nice and lean CSS2, cleaned-up PHP 4.3.7, better-normalized MySQL ;o). So I've started using the $_SESSION variable instead of register_globals...
1
by: mudge | last post by:
I'm running PHP Version 4.3.10. I'm trying to make it so that when a person logs in using a user name and password that their session is valid and continues for a few months so they don't have to...
6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
5
by: Abhilash.k.m | last post by:
This is regarding the session management using Out of proc session management(SQL SERVER). Among the samples below which one is better to set the session? 1. There are 20 session...
4
by: | last post by:
I'm not sure what to think of this. In the appliacation, upon postback, users screens will get mixed up. Meaning... Perhaps on my screen im working with a particular set of data. I click a button...
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
14
by: aroraamit81 | last post by:
Hi, I am facing a trouble. I have some Session variables in my code and somehow my session variables are getting mixed up with other users. For example User A has access to 10 companies and...
5
by: lyealain | last post by:
<% If Session("username") = "" Then Response.Redirect("/CLS/Login.asp") End If Dim conn Dim connectstr Dim db_name, db_username, db_userpassword Dim db_server Dim res
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...
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
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,...

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.