how to get the connected user name in web service

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 1
Reputation: suneeltcs is an unknown quantity at this point 
Solved Threads: 0
suneeltcs suneeltcs is offline Offline
Newbie Poster

how to get the connected user name in web service

 
0
  #1
Jul 12th, 2007
Hi,

Requirement: I am developing a windows based application(Client server architecture). I need to extract the user name of the person who trying to connect to the web service so that i can validate the user authorization.
Followed procedure: In the web service layer i am using the following code to retrieve the login user name,
string user = this.User.Identity.Name;

But i am getting the value as null.
Please help regarding this problem.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC