How to check if my user is online asp.net identity?

2

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?

    
asked by anonymous 15.07.2014 / 21:37

1 answer

3

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.

    
17.07.2014 / 00:48