Asp .Net Identity 2 - Logging out other sessions (using security stamp) after password update also logs out current session

后端 未结 1 1298
难免孤独
难免孤独 2021-02-09 12:45

I need to immediately invalidate and log out any other logged in sessions when a user changes their password, but allow the active session (who has just updated their password)

1条回答
  •  醉话见心
    2021-02-09 12:55

    Don't set validation interval to TimeSpan.FromMinutes(0), as that causes the sign in cookie to be issued immediately, set it to something like 1 second instead.

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