I want to block it so I can not use the same login on multiple machines.
So I need to know if it's online, how do I do this in asp.net identitty?
I want to block it so I can not use the same login on multiple machines.
So I need to know if it's online, how do I do this in asp.net identitty?
The http connections do not stay open. This way, you can not tell if a user is logged in or not.
The most common solution to this type of problem would be the heartbeat pattern. You do a javascript that, from time to time (with setInterval), sends an ajax request to the server to inform you that the user is still browsing your application.