Persistent Cookie Being Deleted On Browser Close - Identity 2.0

前端 未结 1 647
花落未央
花落未央 2020-12-19 10:53

I am using asp.net identity 2.0 to manage user logins. I am following the sample for Identity 2.0 and cannot get the cookie to persist after the whole browser is closed. Thi

相关标签:
1条回答
  • 2020-12-19 11:43

    The issue is with a bug in the OnValidateIdentity which when regenerating the cookie currently always sets IsPersistent to false (even if the original cookie was persistent). So because you set validateInterval to 0 (always validate every request), you effectively never will get a persistent cookie.

    0 讨论(0)
提交回复
热议问题