Frage

I have a project requirement for which I need to store the information of a users system like OS, MAC address, etc. whenever he visits the website so that we can uniquely identify the user's machine. I am developing the project in Spring MVC 3.1. Currently we are using IP address and User agent using JavaScript but both of them are not reliable and can be easily changed. Is there a way to do this through Java/JavaScript/Spring MVC. Thanks in advance.

The same user can register multiple times. To avoid this, we need to identify the user's machine

War es hilfreich?

Lösung

If you want to uniquely identify the user, use cookies.
When a user enter your website, check if he has your cookie. If so, use it, it will identify the user. If not, create a cookie for him with something like UUID.
You can use both Java and JavaScript to put and get cookies from the user.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top