我将 ASP.NET 5 与 MVC6 一起使用。我正在使用 Identity 3.0,但我需要知道如何使它与许多网络服务器一起使用。
可以将会话存储在其他地方吗?数据库?在 MVC5 中,您在 web.config 中执行此操作,但我在 MVC6 中没有找到有关它的信息。
这是我在 Startup.cs 中的代码
app.UseCookieAuthentication(options =>
{
options.AutomaticAuthenticate = true;
options.LoginPath = new PathString("/Account/Login");
options.AutomaticChallenge = true;
});
谢谢!!