I am trying to implement session kill feature for my application. I need to show user all the devices from which he has logged in. But I am not able to get the users machine name from http request.
I have tried this: Another similar question in stack overflow But it gives user's machine name only if it is explicitly specified in hosts file and is the first entry there.
Google has implemented the similar feature google's implementation to review devices/sessions
It shows the user's machine name
My machine name CITRUSPN135 is shown here.
How can I implement the similar feature for my application? I am open for implementations both at front end or server side.