is there anyway to create a unique ID for a browser within javascript?
Im not talking about an ID that is random everytime it is generated but an ID that is unique to the browser it is generated in but also takes into account the computer its running on.
Example:
Windows 7 Chrome might generate: asdh128hakj4gh
Windows 7 Opera might generate: 23hjad823hjakk
Windows 7 Chrome, diff hardware, might generate: asd238881jaal
etc...
Is there anyway to do this?
No, browsers don't have a unique ID. There is no such thing. If there were such a thing, it would be an online advertising company's dream! That said, if you're serving up your site via HTTPS, you can issue your clients with client-side X.
What you are looking for is called Browser Fingerprinting.
You can google for some open source libraries. Ex: fingerprintjs2
Check out EFF's demo
Use cookies
and some unique hash into its. (Each browser has own cookie jar, even if on computer is many browsers)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With