Question
Accessing Windows User Information
I have a site set up that has a customised section that is
different depending on what computer they are accessing the site
from.
I currently achieve this by using a switch statement on the computer's IP address. However, in the near future we are having a windows domain set up and this code will not work as all IP addresses show as the same when on the domain.
Is it possible to automatically obtain the user information of the logged in (to windows) user? If so, how is that done?!
All I would need is their username (as their username will always be unique.)
I currently achieve this by using a switch statement on the computer's IP address. However, in the near future we are having a windows domain set up and this code will not work as all IP addresses show as the same when on the domain.
Is it possible to automatically obtain the user information of the logged in (to windows) user? If so, how is that done?!
All I would need is their username (as their username will always be unique.)