Retrieving unique Terminal IDs  
Author Message
Rahul Singla





PostPosted: .NET Base Class Library, Retrieving unique Terminal IDs Top

I am developing a database application that will reside on a LAN. The users have been categorised into security levels & assigned passwords.
Everything the users do is logged. Among other information like the username etc., I also want to log the Teminal ID from which a transaction is initiated.
I want the ID to be unique, and preferably non-modifiable.

Can anyone suggest me a good parameter of a system that I can use as the ID, and how can I retrieve that parameter using the .NET BCL


.NET Development17  
 
 
nobugz





PostPosted: .NET Base Class Library, Retrieving unique Terminal IDs Top

The Environment.UserDomainName property should do the trick. Use Environment.MachineName if you don't use a domain controller.


 
 
Rahul Singla





PostPosted: .NET Base Class Library, Retrieving unique Terminal IDs Top

Just checked out both of them. Well, both of them can be modified by a user either during installation or using the Control Panel.
Isn't there something over which a user has no control I heard somewhere there's some kindda MAC sublayer address that can't be changed.