get Unique info for a machine in asp.net
So i have a aspx that gets IP Addresses. but if i have multiple mach开发者_如何学JAVAines coming from an IP address I need some info that will distinguish each machine differently.
What would you use?
The question is a bit vague, but in most cases, I'd say cookies would do the trick (although they distinguish combinations of user, browser, and machine rather than just the machine).
Personally I would generate a random cookie and save it on the user's browser and in a database. I could then refer to that as the machine's unique id. However, if the user clears their cookies or uses a different browser or another user logs on, the cookie will not be there. So a machine could have multiple unique ids.
This is a good question. Any other ideas?
Call the method GUID.NewGuid and store the guid inside a session variable or cookie.
There are ways to get the MAC address, if you meet certain conditions.
Get the MAC of ASP.NET website user
精彩评论