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

Server Cache Issue or Something Else?

I am hoping someone here can point me in the right direction with a
problem my user's are experiencing. Here is what is happening:

I have an ASP.NET application that several users will use at the same
time in a classroom-like setting. They access the application
concurrently and occasionally experience an issue where one user
starts accessing the application (they click on a link which sends
their name and login information to the ASP.NET application via the
querystring) and then they see their name displayed on the screen.
Another user, on a completely different PC, then accesses the same
page and they see the information (name) of the first user instead of
their own (which is being sent properly). This is happening at
several locations, using several different internet connection types,
and its very sporadic and cannot be recreated at will.

I believe this is only happening when the client PC's are sharing an
IP address through a router, and even then it is only happening very
rarely. The users are able to workaround the issue by clicking the
Back button on their browser and clicking the link to the application
again.

I know the problem isn't browser or client-side cache related (because
it is happening across different machines), and I have tried the
following code in my application:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")

Am I completely missing something? Does anyone have any
recommendations on how to correct or debug this? Any help you can
provide would be extremely appreciated.
Nov 18 '05 #1
4 1401
Hi Proc:

Some troubleshooting thoughts:

Are you using server side caching? ( @OutputCache directive?).

Are you keeping any user data in the Application object or in a static
/ shared field?

One other comment:
Sending the login information through the query string is not going to
be very secure.

--
Scott
http://www.OdeToCode.com

On Tue, 24 Aug 2004 19:51:10 -0400, Proc <an*******@email.com> wrote:
I am hoping someone here can point me in the right direction with a
problem my user's are experiencing. Here is what is happening:

I have an ASP.NET application that several users will use at the same
time in a classroom-like setting. They access the application
concurrently and occasionally experience an issue where one user
starts accessing the application (they click on a link which sends
their name and login information to the ASP.NET application via the
querystring) and then they see their name displayed on the screen.
Another user, on a completely different PC, then accesses the same
page and they see the information (name) of the first user instead of
their own (which is being sent properly). This is happening at
several locations, using several different internet connection types,
and its very sporadic and cannot be recreated at will.

I believe this is only happening when the client PC's are sharing an
IP address through a router, and even then it is only happening very
rarely. The users are able to workaround the issue by clicking the
Back button on their browser and clicking the link to the application
again.

I know the problem isn't browser or client-side cache related (because
it is happening across different machines), and I have tried the
following code in my application:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")

Am I completely missing something? Does anyone have any
recommendations on how to correct or debug this? Any help you can
provide would be extremely appreciated.


Nov 18 '05 #2
Scott:

Thanks for the reply. I am definitely not using any server side
caching via the "@OutputCache" directive. Also, I don't keep any user
data in the Application object.

Can you explain what you mean by a "static / shared field"? I don't
believe I am doing anything like that, but I can look into it once I
know more about what you mean.

Thanks for the warning about the querystring. Actually none of the
data being sent via the querystring is confidential, no passwords or
actual login identifiers are being passed. Its just the person's name
and a few other public fields. I do understand the concern there, and
always make sure to take it into account when it comes to security.

Thanks, and if there are any other recommendations, please feel free
to speak up. :-)
On Wed, 25 Aug 2004 00:11:09 -0400, Scott Allen
<bitmask@[nospam].fred.net> wrote:
Hi Proc:

Some troubleshooting thoughts:

Are you using server side caching? ( @OutputCache directive?).

Are you keeping any user data in the Application object or in a static
/ shared field?

One other comment:
Sending the login information through the query string is not going to
be very secure.


Nov 18 '05 #3
Hi Proc:

In VB you can mark a member of a class as shared (in C# the keyword is
static). Keeping a username, for example, in a shared property or
shared variable means all requests see the same value. I suspect this
isn't the problem since it would probably give consistently wrong
results, but it's something to check.

--
Scott
http://www.OdeToCode.com

On Wed, 25 Aug 2004 08:57:42 -0400, Proc <an*******@email.com> wrote:
Scott:

Thanks for the reply. I am definitely not using any server side
caching via the "@OutputCache" directive. Also, I don't keep any user
data in the Application object.

Can you explain what you mean by a "static / shared field"? I don't
believe I am doing anything like that, but I can look into it once I
know more about what you mean.

Thanks for the warning about the querystring. Actually none of the
data being sent via the querystring is confidential, no passwords or
actual login identifiers are being passed. Its just the person's name
and a few other public fields. I do understand the concern there, and
always make sure to take it into account when it comes to security.

Thanks, and if there are any other recommendations, please feel free
to speak up. :-)


Nov 18 '05 #4
Thanks for the explanation. That's what I thought you were talking
about. I definitely don't have any shared members or anything (don't
even use the keyword "Shared" anywhere in this application.

I'm really thinking this is some sort of server cache thing, but I
cannot figure out how to debug it since it happens so infrequently.

Does anyone know if the following code completely shuts down the
server cache functionality? Or am I missing something?

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")

Again, thanks for any information you can provide.

On Wed, 25 Aug 2004 10:03:08 -0400, Scott Allen
<bitmask@[nospam].fred.net> wrote:
Hi Proc:

In VB you can mark a member of a class as shared (in C# the keyword is
static). Keeping a username, for example, in a shared property or
shared variable means all requests see the same value. I suspect this
isn't the problem since it would probably give consistently wrong
results, but it's something to check.


Nov 18 '05 #5

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

Similar topics

8
by: Rodd Snook | last post by:
I have an application which makes extensive use of the Scripting.Dictionary object. I'm not doing anything silly like putting them outside the page scope -- just creating quite a few of them and...
13
by: long5120 | last post by:
I am trying to use webpage with javascript to check if a web server is responding. I was thinking of using 2 frames. Frame1 will have the site, and the Frame2 will be a status bar (not really...
10
by: JL | last post by:
To All, I have a SQL2KSP3a database(<1GB) running on a 4x3GB physical CPU with 4GB of ram. It is Windows Server 2003 with hyper-threading turn on. There are ~420 .Net users/cxns (fat client, no...
3
by: smileydip | last post by:
I have a performance and memory management issues with SQL SERVER. I feel SQL server does not releases the unused memory back to the OS. I have been monitoring that at the end of the day the SQL...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
18
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
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.