开发者

cache values been seen by other browser user?

开发者 https://www.devze.com 2023-01-12 16:08 出处:网络
A strange issue.. and probably some key thing I am missing... I am using the MS Enterprise Library version 5.0.. specifically the cache engine.

A strange issue.. and probably some key thing I am missing...

I am using the MS Enterprise Library version 5.0.. specifically the cache engine.

I have a website where from a certain page I do the following:

  1. Cache some values I need for the next page or two..
  2. Go off to another site - actually a payment site..
  3. That payment site returns to my site..
  4. I retrieve the cache values to show..

Ok, I know I am going to probably get shot here.. but apparently on the "odd" occasion, a user says they see the details from a p开发者_Python百科revious user?

I thought when you cache an item (session, cache or whatever), this is only relative to the users session?

Anybody had this issue?


Cache items are shared among all users. Session items are specific for a user (or to be more precise a user's session).

Checkout the descriptions here for further information on the various ASP.NET state management techniques.


You should use caching for general information, for example; city list for your country, you do not have to get city list from your database on each page. You can cache list for all users. So, you should use Session for personal information.

0

精彩评论

暂无评论...
验证码 换一张
取 消