Hi, Maliming I am using RevokeAsync(session) method of the IdentitySessionManager object as shown below. And yes, I am sure that sessions are revoked using this piece of code because no session is found in the sessions list of the user after running this piece of code. I also made sure via debugging this piece of code.
var sessions = await _identitySessionManager.GetListAsync(); foreach (var _session in sessions) { await _identitySessionManager.RevokeAsync(_session); } await uow.SaveChangesAsync();
Hi. Is there an option to attach a text file?
I enabled the dynamic claims, and I am using RevokeAsync(IdentitySession session) to revoke the session of the user. But the problem still persists.
We have disabled the dynamic claims. Is it required to enable it to achieve the purpose?
Hi, So after revoking sessions, I need users to immediately be logged out from the system but I see the users are still able to use the system. How can I force the users to login again as soon as the sessions are revoked.
Hi. So what is meant by enabling session management in your first reply? I see the sessions are being handled by default in the application.
Hi. Thank you for your response, Maliming. So after having session management enabled, how can I programmatically revoke user sessions?
Dear liangshiwei, Thank you for the support. It is not clear in above table as to "the time of the release" refers to release time of what exactly. Kindly elaborate.