Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Unique identification on LAN connection Gowri pandiyan msg:4622479 9:40 am on Nov 11, 2013 (gmt 0) Hi Gurus, I would like to capture an unique id from each user presented in a LAN connection. I know that We could capture the IP address of each user, but the ip addresses seem to be identical for all users presented in a LAN connection. Is there any java script code or any way in order to capture unique id from such users? Thanks in advance!
Fotiman msg:4622521 2:32 pm on Nov 11, 2013 (gmt 0)
The session id from your server side code will be unique and typically gets stored in a cookie. Is your server using PHP? ASP.Net? JD_Toims msg:4622654 12:52 am on Nov 12, 2013 (gmt 0)
I don't know of a way to get the info in JS, but in PHP [or another server-side lang. you can get request headers with] you can sometimes find the LAN address in an X-FORWARDED-FOR header, depending on the LAN settings.
Gowri pandiyan msg:4622656 3:31 am on Nov 12, 2013 (gmt 0)
Thanks a lot for your reply! @Fotiman -- Our server is using ASP.Net Fotiman msg:4622786 2:18 pm on Nov 12, 2013 (gmt 0)
For ASP.Net, you should be able to get the session id from the "Asp_net.sessionid" cookie. Gowri pandiyan msg:4622907 3:12 am on Nov 13, 2013 (gmt 0)
Yes, I got it. Thanks Fotiman :)