Search code examples
javascriptuniquegeneratoruniqueidentifier

JavaScript Unique Browser Id


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?


Solution

  • Use cookies and some unique hash into its. (Each browser has own cookie jar, even if on computer is many browsers)