If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > IIS - Caching of Dynamically Generated Data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-03, 07:54
Deano Deano is offline
Registered User
 
Join Date: Oct 2003
Location: England
Posts: 8
Question IIS - Caching of Dynamically Generated Data

Hi There I wonder if anyone can help me with a general query.

If a web application is displaying information from a database system where the content is secure (selected from restricted views in line with the user's profile), how would caching work?

For example user x selects the following:-

http://abc/test.asp?id =1

the outcome is presented to the screen (because the user has permissions to the data)

User y then accesses the same page, but does not have access to the data, would they see the result of user x's request from the cache?

Hope this is clear.

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-09-03, 16:42
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Unless they use the same computer and the person can click back through their history chances are you're ok. If you want to expire a page right away though, you can set the expiration of the page with:

Response.Expires [= number]

or

Response.ExpiresAbsolute [= [date] [time]]

In the first case number indicates how many minutes the page will remain active in the cache. Setting it to 0 (zero) should effectively expire the page as soon as it's loaded. In the second case date and time are the date and time the page will expire. The date and time are converted to GMT though.. something to keep in mind.

Also, you always have to do your header changes (in this case, the expiration header) before you write any text to the browser.
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 10-10-03, 04:20
Deano Deano is offline
Registered User
 
Join Date: Oct 2003
Location: England
Posts: 8
Thanks Seppuku,

I was thinking more of a server side cache, (which I understand IISprovides) I think you are describing a means of disabling client-side caching.

I want to use the server side cache to improve performance, but not at the cost of security.

Just wanted to know if the server side cache would be intelligent enough to know that the data is secure?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On