homepage Welcome to WebmasterWorld Guest from 54.211.219.68
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Unique identification on LAN connection
Gowri pandiyan



 
Msg#: 4622477 posted 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

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4622477 posted 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

WebmasterWorld Senior Member Top Contributors Of The Month



 
Msg#: 4622477 posted 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#: 4622477 posted 3:31 am on Nov 12, 2013 (gmt 0)

Thanks a lot for your reply!

@Fotiman -- Our server is using ASP.Net

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4622477 posted 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#: 4622477 posted 3:12 am on Nov 13, 2013 (gmt 0)

Yes, I got it. Thanks Fotiman :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved