简体   繁体   English

IIS发送不同的用户页面

[英]IIS sending different user page

I have a problem that appears while using concurrent users in IIS/.Net 3.5. 我在IIS / .Net 3.5中使用并发用户时出现问题。

I am logged in using two users to the same server (user1, user2), both are using different computers. 我使用两个用户登录到同一台服务器(user1,user2),两者都使用不同的计算机。 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. 如果我使用user1按下指向一个页面的链接,然后立即使用user2按下指向同一页面的链接,则两台计算机上都会收到发送给user1的页面。 It seems that IIS is caching the requests and sending it to both computers even though that both are logged in using different accounts. 似乎IIS正在缓存请求并将其发送到两台计算机,即使两者都使用不同的帐户登录。

This never happens if you wait a bit before doing that. 如果您稍等片刻就不会发生这种情况。 Is there any specific IIS configuration that caches those requests? 是否有缓存这些请求的特定IIS配置? 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. ASP.NET具有可配置/可扩展的输出缓存机制。

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. 您可以在web.config中配置/禁用股票页面输出缓存,或者编写自己的自定义输出缓存提供程序并在web.config中进行引用。

There's information about it here . 有关于它的信息在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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