且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET会话混淆使用的StateServer(吓人!)

更新时间:2023-02-05 21:06:22

我们遇到了这个确切问题,我的previous公司,花了3周时间调试。 ASP.NET是给用户别人的会话状态。这是真的不可能在调试环境中复制。

We ran into this exact issue in my previous company and took 3 weeks to debug it. ASP.NET was giving a user someone else's session state. It was really impossible to duplicate in a debug environment.

当我们发现它只是一些在web.config中的修复。我不完全记得,所以我花了一些时间在Google上搜寻。我认为这个问题必须是与输出缓存。看看这篇文章的会话和输出缓存。

The fix when we found it was just something in web.config. I don't fully remember it, so I spent some time googling. I believe the issue had something to do with output caching. Take a look at this article under "Sessions and Output Caching".

http://msdn.microsoft.com/en-us/magazine/cc163577.aspx

如果这听起来像您的情况,则修复可能只是禁止在web.config中enableKernelOutputCache选项。

If that sounds like your scenario, then the fix might just be disabling the enableKernelOutputCache option in web.config.

祝你好运。