Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi...am developing a windows application..i want to retrieve user id of the agent who is logged in..how can i retrieve it..pls help...i tried session keyword..but it is not worked..pls do a reply asap...
Posted

Environment.UserDomainName + "\" + Environment.UserName
or
my.User.Name

Will give you domain\username for the logged user.
 
Share this answer
 
v2
Comments
lipson4u 14-Jul-10 6:02am    
ok thanks...
LNogueira 14-Jul-10 6:07am    
If my answer solved your question please mark it as Accepted Answer.
Posting your code along with this wil help to solve this prob.
you can solve it with session and cookie both.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900