[英]Asp.net mvc application authentication lost every 20-50 seconds
My asp.net mvc application, requires me to login every 20-50 seconds, i contacted the hosting provider, who says its due to recycle of pool. 我的asp.net mvc应用程序要求我每20-50秒登录一次,我联系了托管服务提供商,后者说这是由于回收池造成的。
i have added following code to web.config. 我已将以下代码添加到web.config。
<sessionState mode="StateServer" stateConnectionString="tcpip=localhost:42424" cookieless="false" timeout="20"/>
the problem is not solved, how do i serialize the authentication part, suggestions any one. 问题没有解决,我如何序列化身份验证部分,建议任何一个。
Thank you in advance. 先感谢您。
The root of the problem is obviously that the pool is recycling WAY too frequently. 问题的根源显然是池回收WAY的频率太高了。 Did you get any response from the host on what might be causing that?
您是否从主持人收到任何有关可能是什么原因的响应?
Don't band-aid the problem, find the solution to the problem of the app pool recycling. 不要帮忙解决问题,找到解决应用程序池回收问题的解决方案。
To help diagnose your problem, consider: 为了帮助您诊断问题,请考虑:
I agree with p.campbell that their are bigger concerns here with the app pool. 我同意p.campbell的观点,他们对应用程序池的关注更大。 Possible causes of this problem
此问题的可能原因
Want to narrow it down? 要缩小范围吗? Depending on the issue you may find that enabling ASP.NET health monitoring on the site to log application events to a file/e-mail/SQL server could shed some more light on the matter.
根据问题的不同,您可能会发现,在站点上启用ASP.NET运行状况监视以将应用程序事件记录到文件/电子邮件/ SQL Server可能会进一步说明此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.