且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用户使用“记住我"注销

更新时间:2023-02-25 10:41:10

这是已知 错误.

可以通过使用您自己的代码替换SecurityStampValidator.OnValidateIdentity来解决此问题-重新生成Cookie时,它会忘记在新Cookie中添加"RememberMe"属性,这会使新Cookie不再持久.

It can be fixed by replacing SecurityStampValidator.OnValidateIdentity with your own code - when the cookie is re-generated, it forgets to add "RememberMe" property in the new cookie and this makes the new cookie not persistent.

我认为此问题已在v2.2中解决,但此版本尚未投入生产.遗憾的是,现在我找不到原始的错误报告.

I think this has been resolved in v2.2, but this version is not out for production yet. And sadly I can't find the original bug-report for this now.