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

page caching issue. dropdown list not refreshing.

Hi,
I'm having a problem with page caching and therefore reusing dropdown box
contents.
Scenerio:
user1 has security to see list of three items(.aspx populates it with three
items only) in dropdown on page1.
user2 has security to see list of two items in dropdown on page1.

user1 logs in.
when user1 gets to page1, dropdown has three items.
user1 logs out. Session is cleared.
Now, this is without closing a browser.
user2 logs in.
when user2 gets to page1, dropdown has same three items instead of two he is
allowed to see.

This behavior is when "refresh page" set to 'Automatically' in IE.
If it's 'refresh on every visit' is set, this doesn't happen.
The only way for it to be secure right now is to require a user to close a
browswer after working and letting another user to start(same computer of
course).

What I don't understand is where the heck the data is coming from?
I set no caching on top and bottom of the page, like:

in <HEAD> tag before and after <body> tag:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
I'm checking the temporary files and there is no page1 there.

When I'm debugging my webapp, it goes a proper route, meaning contents of a
dropdown is changed for a different user.
But with a simple test, without debugger, just using IE browser, dropdown
contents won't change.

How is dropdown getting cached and where?
How to reset it?

Thanks,
Oleg

Apr 21 '06 #1
1 4069
Thus wrote Oleg,
Hi,
I'm having a problem with page caching and therefore reusing dropdown
box
contents.
Scenerio:
user1 has security to see list of three items(.aspx populates it with
three
items only) in dropdown on page1.
user2 has security to see list of two items in dropdown on page1.
user1 logs in.
when user1 gets to page1, dropdown has three items.
user1 logs out. Session is cleared.
Now, this is without closing a browser.
user2 logs in.
when user2 gets to page1, dropdown has same three items instead of two
he is
allowed to see.
This behavior is when "refresh page" set to 'Automatically' in IE.
If it's 'refresh on every visit' is set, this doesn't happen.
The only way for it to be secure right now is to require a user to
close a
browswer after working and letting another user to start(same computer
of
course).
What I don't understand is where the heck the data is coming from? I
set no caching on top and bottom of the page, like:

in <HEAD> tag before and after <body> tag:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">


Please forget about META tags. That's an ancient hack that's worthless in
a world of caching proxies. If you want to mark an ASP.NET page uncacheable,
use the page directive

<%@ OutputCache Location="None" %>

or add this to your Page_Load handler:

Response.Cache.SetCacheability(HttpCacheability.No Cache);

In addition to that, make sure you're not victimized by accidental session
id reuse -- see http://support.microsoft.com/default...b;EN-US;899918
for more details.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Apr 21 '06 #2

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

Similar topics

3
by: Jim Mitchell | last post by:
My Goal is to have a dropdown (DL2) filled from the selectIndexChange event of a primary dropdown (DL1). These are picklists that will be selected frequently. Can someone recommend a strategy...
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
2
by: JP SIngh | last post by:
Hi All I just wondering if someone can suggest a solution to this tricky issue we have got. I have an asp form which allow our users to create a new record and save it to the database. On the...
15
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql...
5
by: Tim | last post by:
I have block of code adding values to dropdown list under if (!Page.IsPostBack) { adding items } else { refreshing data }
0
by: syedsheeraz | last post by:
Hi all. Does anyone know if there is a way to gain programmatic access to the user control inside of a page after it has been cached? Let me elaborate more by telling you what I am doing. I am...
1
by: viral123 | last post by:
Hi all I have created one dropdown list box which contains all the employee name. By selecting the name from that list, it returns the details of that particular employee from the database. It...
4
by: salsipius | last post by:
Let me start by saying that I have searched high and low for a solution to this problem and I am about ready to give up... grrrrrrr I have extended an asp page written by someone else with an...
8
by: Harvey Schmidlapp | last post by:
I have a fairly complex form (generated by means of an ASP 3 page). The form is used to define a query against a database. After running a query, the user hits their browser's back button and goes...
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: 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,...
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...

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.