How can I uniquely identify a computer in node.js?

The simple question is, I'm new to using node.js, and I was curious how should I uniquely identify the computer?

+6
javascript websocket
source share
2 answers

As with most operations, you cannot uniquely identify a computer. All data is sent without citizenship and without any information on the computer.

But you can change your (x) html application for storing unique cookies so that the client-side part can authenticate with the server using a cookie, fully identifying two open tabs of the same user.

+2
source share

If you work with web sockets, you can assign an identifier to each client using a random uuid , here is one that will work on both the client and the server:

http://www.broofa.com/Tools/Math.uuid.js

and speeds for each flavor:

http://jsperf.com/uuid-from-broofa-com

0
source share

All Articles