Determine Client's Computer Name

后端 未结 7 657
情歌与酒
情歌与酒 2020-11-29 23:41

I am building an intranet site that will display different lists based on the computer name because different computers are in different areas, is there a way (within a cont

相关标签:
7条回答
  • 2020-11-30 00:34

    No. The client's computer name is not available in any way on the server. This is the nature of the http request-response. You only can have its IP address.

    A workarounds could be to retrieve machine on the client from Flash/Silverlight (I doubt JavaScript) and put in into cookie which is available on the server with each request. But there is a whole stack of issues with this approach.

    0 讨论(0)
提交回复
热议问题