ASP.NET 5标识3用户得到后重新启动应用程序注销 [英] ASP.NET 5 Identity 3 users get signed out after application restart

查看:203
本文介绍了ASP.NET 5标识3用户得到后重新启动应用程序注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用ASP.NET身份3。

We are using ASP.NET Identity 3.

我们的用户中随机得到自动退出。要重现这个问题,我试图重新启动应用程序,所有用户都注销,即使是那些谁曾检查记住

Our users are randomly getting signed out automatically. To reproduce this issue, I tried application restart, all users signed out, even those who had checked Remember me.

它只是发生在生产,工作正常发展的环境。

It only happens in Production, works fine on development environment.

更新:

我们在生产中只有一台服务器。

We have only one server in production.

推荐答案

您需要的在生产​​服务器上配置的数据保护。我认为在你的本地计算机的网站作为一个本地用户运行,这样的注册表配置单元的可以的创建和读取。而如果你运行它作为一个用户没有本地配置文件(默认的IIS应用程序池的用户选项),它可能没有权限/ s到创建或读取所需的密钥。你需要运行这个配置脚本,在这种情况下的。

You will need to configure data protection in the production server. I assume that in your local machine the website runs as a local user so the registry hives can be created and read. While if you run it as a user without a local profile (default IIS app pool user option), it may not have the permission/s to create or read the keys required. You'll need to run this provisioning script in that case.

有关于他们在发布到一个良好的阅读IIS 。这一步是记载有

Have a good read about their guide on Publishing to IIS. That step is documented there.

这篇关于ASP.NET 5标识3用户得到后重新启动应用程序注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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