简体   繁体   中英

IIS sending different user page

I have a problem that appears while using concurrent users in IIS/.Net 3.5.

I am logged in using two users to the same server (user1, user2), both are using different computers. If I press on a link to one page using user1 and immediately on the same link to the same page using user2, I receive the sent page to user1 on both computers. It seems that IIS is caching the requests and sending it to both computers even though that both are logged in using different accounts.

This never happens if you wait a bit before doing that. Is there any specific IIS configuration that caches those requests? How can I link it to per account instead to all? At worst case, how can I disable it?

Any tips are highly appreciated.

ASP.NET has a configurable/extensible output caching mechanism.

You can configure/disable the stock page output caching in web.config, or write your own custom output cache provider and refer to that in web.config.

There's information about it here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM