ASP.NET MVC Identity 2.0非常频繁的意外用户注销 [英] ASP.NET MVC Identity 2.0 Very frequent unexpected user logoff
问题描述
我有一个带有ASPNet.Identity 2.0安全系统的ASP.NET MVC 5应用程序。
因此,当用户首次登录网站并且稍后(从1到20)的一些点击他突然注销时,我经常出现这种情况。
仅在实时系统上发生(在使用IIS 8.5进行托管时)。
I have a ASP.NET MVC 5 Application with ASPNet.Identity 2.0 security system. So, I have frequent situation when user first logs in the site and some clicks later (from 1 to 20) he suddenly logs off. This occurs only on live system (on hosting with IIS 8.5).
asp.net cookie不会更改其值。
The asp.net cookie does not change its value.
使用IIS Express进行开发时没有出现此类错误。
And there is no such error on development with IIS Express.
这怎么可能发生?
也许是关于一些IIS设置?
How can that happen? Maybe it's about some IIS settings?
这是域和app.pool中唯一的一个应用程序。
It's the only one application on domain and in app.pool.
推荐答案
我已经解决了我的麻烦,在我的Web.Config中生成机器密钥。
I've solved my trouble, with generating machine key in my Web.Config.
这篇关于ASP.NET MVC Identity 2.0非常频繁的意外用户注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!