1

A user connects to my web application,

I grab some sort of device ID through W3C standard protocols,

The user logs in,

I can then identify this specific unique device owned by the user (not just "iPad" - I'm looking for "iPad3_2C38TY43058" or even just "John's iPad").

This would let me design my web application to treat logins from this device in a specific way, know which of John's 5 devices he's logged in from, etc.

Is there such a protocol? Is there any method of identify a specific device as described?

2

Web browsers do not send any identifier that is specific to a device. They send the "User-Agent" header which will generally tell you the name of the browser, version of the browser, and often the type of device.

You can set a cookie the first time that you see a visitor with a unique device ID in it. The user will send that cookie back on every subsequent page visit. Cookies sound exactly like what you want here. They are generally not shared between devices.

| improve this answer | |
  • A cookie set on Chrome on John's Mac won't tell me it's still John's Mac when he logs in from Safari on the same device, so it isnt quite a solution - however you did answer my question; It cant be done without some kind of plugin. – Viziionary Nov 4 '15 at 20:56
1

If you're using a server-side language, you could also check for IP address. For example, in PHP:

https://stackoverflow.com/questions/1634782/what-is-the-most-accurate-way-to-retrieve-a-users-correct-ip-address-in-php?rq=1

... but be careful with this. Sometimes, you'll just end up with the address of a shared gateway of some sort, rather than the device itself.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.