Mobile app version of vmapp.org
Login or Join
Vandalay111

: Is there a protocol for identifying a users's device? 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

@Vandalay111

Posted in: #WebApplications

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

2 Comments

Sorted by latest first Latest Oldest Best

 

@Murray155

If you're using a server-side language, you could also check for IP address. For example, in PHP:
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.

10% popularity Vote Up Vote Down


 

@Megan663

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme