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

CACHE, BUFFER, system bug or what?

All,

Did anybody see this strange effect? The web application is written in C#,
ASP.NET, SQL, T-SQL, etc. A pretty usual stuff, complicated enough, but
works fine until...

Here is a question. I don't see any problem if I start this app on my local
computer against my local IE both in debug or release modes. If I upload the
same app to my corporate server where it works under HTTPS here are a few
possible ways.

1. It works just great if the Advanced Internet option "Do not save
encrypted pages to disk" is checked on.
2. If I uncheck this option then it still works if I run it on my local IIS
against my local IE,
3. ... but if I run this app against my corporate server with my local IE
then here is a very interesting bug. I'm able to login as one client using
his login/password, then I can click the Backspace button, get the login
page again, enter another login/password, then click OK and get the page
belonging to the first patient like it was already stored in some buffer and
returned back to me. All pages and the whole app are configured to ignore
the cache, all aspx pages are having this tag:

<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">

No results at all! What's going on? Is the operating system too stupid to
cache pages inside one session and ignore all settings made right in the
program code? It doesn't happen if I call new pages one by one, the app is
written so that it generates a new URL every time when it's called
especially to prevent any type of caching, any type of caching is excluded
to protect the privacy, but I can do nothing to the return back feature.
This bug kills the whole security. Why IIS is so crazy to return the page
from some cache in place of a new calculated page according to the new
combination login/password? Any ideas how to avoid this issue? The operating
system on the server is Windows 2000 Advanced Server. My local system where
this issue doesn't appear is Windows XP Pro. If I connect to the remote
server ragardless of the machine and/or operating system I'm receiving this
issue. But why? If I check the option mentioned above in - "Do no save
encrypted pages to disk" it works great. A new M$ hole or something?

I also see in debugger that if I click the Backspace button the previous
page "supposes" that there were no a postback and executes a short schema
skipping the if (!IsPostBack){}. Maybe I should play with it closer? Did
anybody see this kind of issues and what was the solution?

Just D.
Nov 17 '05 #1
9 2119
Hi,

Text inline.

"Just D." <no@spam.please> wrote in message
news:gjxTe.71633$Ji4.70484@fed1read03...
Here is a question. I don't see any problem if I start this app on my
local computer against my local IE both in debug or release modes. If I
upload the same app to my corporate server where it works under HTTPS here
are a few possible ways.

1. It works just great if the Advanced Internet option "Do not save
encrypted pages to disk" is checked on.
2. If I uncheck this option then it still works if I run it on my local
IIS against my local IE,
What error you see when uploaded to the server?
3. ... but if I run this app against my corporate server with my local IE
then here is a very interesting bug. I'm able to login as one client using
his login/password, then I can click the Backspace button, get the login
page again, enter another login/password, then click OK and get the page
belonging to the first patient like it was already stored in some buffer
and returned back to me. All pages and the whole app are configured to
ignore the cache, all aspx pages are having this tag:

<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
Post the code you are using in the page, I bet this is a programming error
more than a OS matter.
Just to be sure, do a Session.Abandon() before checking the login/password
this will assure you that the previous session will be discarded.
No results at all! What's going on? Is the operating system too stupid to
cache pages inside one session and ignore all settings made right in the
program code? It doesn't happen if I call new pages one by one, the app is
written so that it generates a new URL every time when it's called
especially to prevent any type of caching, any type of caching is excluded
to protect the privacy, but I can do nothing to the return back feature.
This bug kills the whole security. Why IIS is so crazy to return the page
from some cache in place of a new calculated page according to the new
combination login/password? Any ideas how to avoid this issue? The
operating system on the server is Windows 2000 Advanced Server. My local
system where this issue doesn't appear is Windows XP Pro. If I connect to
the remote server ragardless of the machine and/or operating system I'm
receiving this issue. But why? If I check the option mentioned above in -
"Do no save encrypted pages to disk" it works great. A new M$ hole or
something?
Again the back button is dependand of the browser, not IIS, you have to live
with that.
I also see in debugger that if I click the Backspace button the previous
page "supposes" that there were no a postback and executes a short schema
skipping the if (!IsPostBack){}. Maybe I should play with it closer? Did
anybody see this kind of issues and what was the solution?


When you use the "back" button the browser just load the cached document he
has, no request is made to the server, it has been like that always.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nov 17 '05 #2
Caching occurs in 3 places when dealing with web pages: on the server, on the
client, and on an intermediate proxy server. The no-cache stuff you set only
affects the browser. It simply tells the browser to not cache the page. You
should be able to confirm that the browser is not caching the page by looking
in your temp IE directory. When you click the Back button the browser goes
there first irrelevant of anything else.

Once you have verified that the page itself is not being cached then you
need to confirm that IIS is not caching the page. You can verify this by
looking in the IIS settings for the expiration of pages. Note that setting
this globally could have a dramatic effect on performance.

Finally you need to deal with the proxy server. Chances are that your
corporate IIS box uses a proxy server but I doubt that you are running one
locally so this is probably where the problem lies. When a page request is
sent to the IIS box the proxy server will intercept the request and see if it
has a cached copy of the page (this is not affected by the no-cache option
you set). If it has a copy then it returns the copy otherwise it'll pass the
request on to IIS. To disable proxy caching you need to add some more
pragmas to your page.

In .NET you can remove the various no-cache pragmas and what not from your
page. They won't meet your need in this case. Instead use
HttpCachePolicy.SetCacheability(HttpCacheability.N oCache). This will force
the page to be retrieved from the server every time irrelevant of IE or proxy
settings. It does not map to no-cache.

I haven't played around with this stuff too much but that is how I
understand it. Hope it helps.
Michael Taylor - 9/7/05

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Text inline.

"Just D." <no@spam.please> wrote in message
news:gjxTe.71633$Ji4.70484@fed1read03...
Here is a question. I don't see any problem if I start this app on my
local computer against my local IE both in debug or release modes. If I
upload the same app to my corporate server where it works under HTTPS here
are a few possible ways.

1. It works just great if the Advanced Internet option "Do not save
encrypted pages to disk" is checked on.
2. If I uncheck this option then it still works if I run it on my local
IIS against my local IE,


What error you see when uploaded to the server?
3. ... but if I run this app against my corporate server with my local IE
then here is a very interesting bug. I'm able to login as one client using
his login/password, then I can click the Backspace button, get the login
page again, enter another login/password, then click OK and get the page
belonging to the first patient like it was already stored in some buffer
and returned back to me. All pages and the whole app are configured to
ignore the cache, all aspx pages are having this tag:

<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">


Post the code you are using in the page, I bet this is a programming error
more than a OS matter.
Just to be sure, do a Session.Abandon() before checking the login/password
this will assure you that the previous session will be discarded.
No results at all! What's going on? Is the operating system too stupid to
cache pages inside one session and ignore all settings made right in the
program code? It doesn't happen if I call new pages one by one, the app is
written so that it generates a new URL every time when it's called
especially to prevent any type of caching, any type of caching is excluded
to protect the privacy, but I can do nothing to the return back feature.
This bug kills the whole security. Why IIS is so crazy to return the page
from some cache in place of a new calculated page according to the new
combination login/password? Any ideas how to avoid this issue? The
operating system on the server is Windows 2000 Advanced Server. My local
system where this issue doesn't appear is Windows XP Pro. If I connect to
the remote server ragardless of the machine and/or operating system I'm
receiving this issue. But why? If I check the option mentioned above in -
"Do no save encrypted pages to disk" it works great. A new M$ hole or
something?


Again the back button is dependand of the browser, not IIS, you have to live
with that.
I also see in debugger that if I click the Backspace button the previous
page "supposes" that there were no a postback and executes a short schema
skipping the if (!IsPostBack){}. Maybe I should play with it closer? Did
anybody see this kind of issues and what was the solution?


When you use the "back" button the browser just load the cached document he
has, no request is made to the server, it has been like that always.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nov 17 '05 #3
Hi,
When you use the "back" button the browser just load the cached document
he has, no request is made to the server, it has been like that always.


Not exactly, some secure web sites don't allow to use the Backspace button
showing that the content of the page is expired. Just expiration, a
time-to-live tag or something else?

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uE**************@TK2MSFTNGP12.phx.gbl...

Just D.
AZ
Nov 17 '05 #4
Thanks Michael,

I will try your advice:

HttpCachePolicy.SetCacheability(HttpCacheability.N oCache).

Sounds like a good idea. For sure we're not using any cache system on both
sides, the provider doesn't use any proxy or something, otherwise the
traffic would kill it. Anyway I asked the provider about it a couple years
ago. I'm sure that this is the IE bug, I tried Opera yesterday, almost all
controls don't work properly but the credentials work fine, so this is this
feature of the IE - "Do not save encrypted pages to disk", if it's disabled,
only then I see the issue.

Just D.
AZ.
Nov 17 '05 #5
Here is a little bit better, take a look;
HttpCachePolicy.SetCacheability(HttpCacheability.N oCache).


http://support.microsoft.com/kb/q234067/

http://support.microsoft.com/kb/222064/

Just D.
Nov 17 '05 #6
Instead of using :
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">

Have you tried using : Response.Cache.SetNoStore ();

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
===========================

"Just D." <no@spam.please> wrote in message news:gjxTe.71633$Ji4.70484@fed1read03...
All,

Did anybody see this strange effect? The web application is written in C#, ASP.NET, SQL,
T-SQL, etc. A pretty usual stuff, complicated enough, but works fine until...

Here is a question. I don't see any problem if I start this app on my local computer
against my local IE both in debug or release modes. If I upload the same app to my
corporate server where it works under HTTPS here are a few possible ways.

1. It works just great if the Advanced Internet option "Do not save encrypted pages to
disk" is checked on.
2. If I uncheck this option then it still works if I run it on my local IIS against my
local IE,
3. ... but if I run this app against my corporate server with my local IE then here is a
very interesting bug. I'm able to login as one client using his login/password, then I
can click the Backspace button, get the login page again, enter another login/password,
then click OK and get the page belonging to the first patient like it was already stored
in some buffer and returned back to me. All pages and the whole app are configured to
ignore the cache, all aspx pages are having this tag:

<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">

No results at all! What's going on? Is the operating system too stupid to cache pages
inside one session and ignore all settings made right in the program code? It doesn't
happen if I call new pages one by one, the app is written so that it generates a new URL
every time when it's called especially to prevent any type of caching, any type of
caching is excluded to protect the privacy, but I can do nothing to the return back
feature. This bug kills the whole security. Why IIS is so crazy to return the page from
some cache in place of a new calculated page according to the new combination
login/password? Any ideas how to avoid this issue? The operating system on the server is
Windows 2000 Advanced Server. My local system where this issue doesn't appear is Windows
XP Pro. If I connect to the remote server ragardless of the machine and/or operating
system I'm receiving this issue. But why? If I check the option mentioned above in - "Do
no save encrypted pages to disk" it works great. A new M$ hole or something?

I also see in debugger that if I click the Backspace button the previous page "supposes"
that there were no a postback and executes a short schema skipping the if
(!IsPostBack){}. Maybe I should play with it closer? Did anybody see this kind of issues
and what was the solution?

Just D.

Nov 17 '05 #7
Hi Juan,

Nice to see you outside the CH :)
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ei****************@TK2MSFTNGP12.phx.gbl...
Instead of using :
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">

Have you tried using : Response.Cache.SetNoStore ();

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
===========================

"Just D." <no@spam.please> wrote in message
news:gjxTe.71633$Ji4.70484@fed1read03...
All,

Did anybody see this strange effect? The web application is written in
C#, ASP.NET, SQL, T-SQL, etc. A pretty usual stuff, complicated enough,
but works fine until...

Here is a question. I don't see any problem if I start this app on my
local computer against my local IE both in debug or release modes. If I
upload the same app to my corporate server where it works under HTTPS
here are a few possible ways.

1. It works just great if the Advanced Internet option "Do not save
encrypted pages to disk" is checked on.
2. If I uncheck this option then it still works if I run it on my local
IIS against my local IE,
3. ... but if I run this app against my corporate server with my local IE
then here is a very interesting bug. I'm able to login as one client
using his login/password, then I can click the Backspace button, get the
login page again, enter another login/password, then click OK and get the
page belonging to the first patient like it was already stored in some
buffer and returned back to me. All pages and the whole app are
configured to ignore the cache, all aspx pages are having this tag:

<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">

No results at all! What's going on? Is the operating system too stupid to
cache pages inside one session and ignore all settings made right in the
program code? It doesn't happen if I call new pages one by one, the app
is written so that it generates a new URL every time when it's called
especially to prevent any type of caching, any type of caching is
excluded to protect the privacy, but I can do nothing to the return back
feature. This bug kills the whole security. Why IIS is so crazy to return
the page from some cache in place of a new calculated page according to
the new combination login/password? Any ideas how to avoid this issue?
The operating system on the server is Windows 2000 Advanced Server. My
local system where this issue doesn't appear is Windows XP Pro. If I
connect to the remote server ragardless of the machine and/or operating
system I'm receiving this issue. But why? If I check the option mentioned
above in - "Do no save encrypted pages to disk" it works great. A new M$
hole or something?

I also see in debugger that if I click the Backspace button the previous
page "supposes" that there were no a postback and executes a short schema
skipping the if (!IsPostBack){}. Maybe I should play with it closer? Did
anybody see this kind of issues and what was the solution?

Just D.


Nov 17 '05 #8
Hi, Nacho.

I'm here every day...

Nice to see *you* here.

;-)

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Juan,

Nice to see you outside the CH :)
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ei****************@TK2MSFTNGP12.phx.gbl...
Instead of using :
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">

Have you tried using : Response.Cache.SetNoStore ();
Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
===========================

Nov 17 '05 #9
Just D. wrote:
Thanks Michael,

I will try your advice:

HttpCachePolicy.SetCacheability(HttpCacheability.N oCache).

Sounds like a good idea. For sure we're not using any cache system on both
sides, the provider doesn't use any proxy or something, otherwise the
traffic would kill it. Anyway I asked the provider about it a couple years
ago. I'm sure that this is the IE bug, I tried Opera yesterday, almost all
controls don't work properly but the credentials work fine, so this is this
feature of the IE - "Do not save encrypted pages to disk", if it's disabled,
only then I see the issue.

Just D.
AZ.


Opera/Controls - have you updated browserCaps in machine config? If
not, go to http://slingfive.com/pages/code/browserCaps/ or somewhere
similar and follow the instructions. Note that one bad one to try is
the site mentioned just above browserCaps. The updates never appeared.

Damien

Nov 17 '05 #10

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

Similar topics

0
by: PD | last post by:
I am trying to stream out a PDF file via the response object and when I execute the code it always brings up the first document that I pulled up.Even when I step through the code, I can see the new...
9
by: Just D. | last post by:
All, Did anybody see this strange effect? The web application is written in C#, ASP.NET, SQL, T-SQL, etc. A pretty usual stuff, complicated enough, but works fine until... Here is a question....
26
by: Ed L. | last post by:
Here's some of my current notions on pgsql performance tuning strictly as it relates to pgsql tuning parameters in the context of a dedicated linux or hpux server. I'm particularly focusing on...
3
by: Sally Sally | last post by:
I have a very basic question on the two parameters shared buffers and effective cache size. I have read articles on what each is about etc. But I still think I don't quite grasp what these settings...
2
by: Don Kelloway | last post by:
I'm a first-time user with PostgreSQL so please forgive my ignorance. I've purchased (and read) Practical PostgreSQL (O'Reilly) and PostgreSQL Essential Reference (New Riders). So far, so good. ...
5
by: sethwai | last post by:
Hi, I've read everything I can get my hands on and am still very confused about the similarities and differences between db2_mmap_read/write and concurrent i/o. It seems to me at this point...
0
by: Gwl | last post by:
I made some test to mesure the c# read perfomance on binary file and I made some curious discovery. Except for some minor details, the following is the code I used to read the file: byte buffer...
1
by: MSwanston | last post by:
Hi I need some help with saving retreiving data from the cache, and how best to structure my code. FYI am working in VS2005/under .NET2 Framework. Ok, we have a series of reports that get run via...
0
by: rashao | last post by:
I am using Postgres 8.1.4 on Linux. I am interested in calculating the following for a specific application: How long it takes the operating system to fulfil a page demand, ie, reading the page...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
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
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...

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.