ASP.NET Identity 2 Remember me 没有按预期工作

ASP.NET Identity 2 Remember me not working as expected

所以我正在使用 ASP.NET MVC 项目提供的个人身份验证的默认实现,除了记住我功能外,一切正常,我注意到一段时间后记住我不再有效.
我已经解决了关于堆栈溢出的所有问题并尝试了解决方案,但到目前为止没有任何效果。我还注意到这个问题已经被在版本 2 中制作 Identity 的人修复了,我使用的是默认安装的版本 2.2.1。
有什么我想要改变的东西来完成这项工作吗?我不确定还能尝试什么

在您的 Startup.Auth.cs 文件中,将默认的 validateInterval 值从 30 分钟更改为 0

app.UseCookieAuthentication(new CookieAuthenticationOptions
        {
            AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
            LoginPath = new PathString("/Account/Login"),
            Provider = new CookieAuthenticationProvider
            {                  

                OnValidateIdentity = SecurityStampValidator
            .OnValidateIdentity<ApplicationUserManager, ApplicationUser, int>(
                validateInterval: TimeSpan.FromMinutes(0),
                regenerateIdentityCallback: (manager, user) =>
                    user.GenerateUserIdentityAsync(manager),
                getUserIdCallback: (id) => (id.GetUserId<int>()))
            }
        });