注销的循环 [英] Logout on recycle

查看:187
本文介绍了注销的循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在生产环境中我有一个IIS托管asp.net应用程序,实际上许多Web应用程序。每一个应用程序会消耗大量的内存,但在此刻,以限制它的唯一方法是回收(NHibernate的似乎被泄漏内存,它是创造大量的字符串集合)。的问题是,再循环后它保持登录电子用户退出或而丢弃会话?在本地计算机上我不能重现的问题。我已经使用状态服务器,没有运气,问题contined,将节省CHANE任何SQL状态tryed还是我只是想念含铅或失去了一些东西?

On a production environment I have an IIS hosted asp.net application, actually many web applications. Every app consumes a lot of memory but at the moment the only way to limit it is recycle (nHibernate seems to be leaking memory, and it's creating large amount of string collections). The problem is that after the recycle it keeps loging users out or rather dropping the session ? On local computer I couldn't recreate the issue. I've tryed using state server with no luck, the issue contined, would SQL State saving chane anything or am I just miss leaded or missing something ?

推荐答案

答案是惊人的,它是有关查看我登录我的应用程序状态的错误,我发现在的 MSDN网站,此行特别是:

The answer was surprising and it was related to view state errors that I logged in my application, I found a proper explanation on one of the MSDN sites, this line in particular :

有关的machineKey

[...]当应用程序池下的用户帐户,也不会产生上述按键导致间歇无效视图状态错误。运行的

"[...] When the application pool is running under a user account, the above keys are not generated leading to an intermittent invalid viewstate error."

总之一切都必须做的是的生成计算机密钥并回收未导致用户重新认证了。

In conclusion all that had to be done was generating a machine key and recycle is not causing users to re-authenticate anymore.

这篇关于注销的循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆