This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get user name of the client machine

 
vikas sharmaa
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can get the name of current user logged in to the system by using System.getProperty("user.name") method call. But, how could we get the user name of the client machine from the server machine? here client is sending request to server machine using browser. On getting first request, server has to determine the user name of the client. we are not using applets in our application. Please help me. Thank you.
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let the client send the user name along with the rest of the request. The server can't possibly know who the user is unless someone told him so.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic