title: How to Logout user from a particular session Identity Server 4, .Net Core?
body: <p>Using <a href="http://docs.identityserver.io/" rel="noreferrer">Identity Serve 4</a> with <a href="https://dotnet.microsoft.com/download/dotnet-core/3.1" rel="noreferrer">.Net Core 3.1</a>, razor pages.  Also using Cookie Authentication</p>
  <pre><code>services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
  </code></pre>
  <p>Problem -</p>
  <p>In a web application John logged-in 2 times</p>
  <ul>
  <li>1st Login on Chrome</li>
  <li>2nd Login on edge</li>
  </ul>
  <p>So, if John again trying to logged-in on 3rd time on Firefox without logout from previous browsers, then I want to logout John from 1st Login on Chrome forcefully.</p>
  <p>I can keep the track of logins in a Session table including Session Id, User Id etc.
  But I don’t know how logout user from a particular session using Session Id.</p>
  <p>Please help.</p>
  <p>Thanks</p>