This can be done by adding a newly created session from the Global.asax list to the list.
Iterate then to compare user and SignOut user sessions.
protected void Session_Start(object sender, EventArgs e) { MyGlobalObject.Sessions.Add(HttpContext.GetOwinContext().Authentication); }
And later, in the checkout event:
private void SignoutAll() { foreach (var authenticationManager in MyGlobalObject.Sessions) { authenticationManager.SignOut(); } }
source share