0

Is there a way to get all ONLINE (logged in) users in asp.net core 3.1

I didn't find anything that solves my problem on the internet.

Thank you!

David Liang
  • 20,385
  • 6
  • 44
  • 70
stoyo1
  • 1
  • 2

1 Answers1

0

You should add some static collection to your Startup class and add user there when he is logged in and remove it when the user is logged out.

More details refer this: How Get logged in users list (online users) in Asp.Net Core 1

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
Always_a_learner
  • 1,254
  • 1
  • 8
  • 16