ASP.NET MVC Identity 2.0 Very frequent unexpected user logoff

﹥>﹥吖頭↗ 提交于 2019-12-13 05:38:10

问题


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).

The asp.net cookie does not change its value.

And there is no such error on development with IIS Express.

How can that happen? Maybe it's about some IIS settings?

It's the only one application on domain and in app.pool.


回答1:


I've solved my trouble, with generating machine key in my Web.Config.



来源:https://stackoverflow.com/questions/35169488/asp-net-mvc-identity-2-0-very-frequent-unexpected-user-logoff

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!